summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2004-03-23 19:20:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2004-03-23 19:20:45 +0000
commit65ec62333e8de8197dd99d65efbb8dee5217e6ac (patch)
tree33033c13e8a0be79bd433cf52c97a8d169a53d10 /src
parentf08020571b6e0efb91213396b436146c7cb8a41f (diff)
downloadirssi-65ec62333e8de8197dd99d65efbb8dee5217e6ac.zip
/SET without parameters didn't print all settings
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3231 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-settings.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c
index 7cb0ee2a..87b768fc 100644
--- a/src/fe-common/core/fe-settings.c
+++ b/src/fe-common/core/fe-settings.c
@@ -83,13 +83,12 @@ static void cmd_set(char *data)
"set", &optlist, &key, &value))
return;
- if (*key == '\0') {
- cmd_params_free(free_arg);
- return;
- }
clear = g_hash_table_lookup(optlist, "clear") != NULL;
set_default = g_hash_table_lookup(optlist, "default") != NULL;
+ if (*key == '\0')
+ clear = set_default = FALSE;
+
last_section = ""; found = 0;
sets = settings_get_sorted();
for (tmp = sets; tmp != NULL; tmp = tmp->next) {