diff options
author | Timo Sirainen <cras@irssi.org> | 2004-01-20 22:21:02 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-01-20 22:21:02 +0000 |
commit | 566485c3ab7ebd6494e471c7e1a742fee5acfec9 (patch) | |
tree | d4ab9b80d47115860b851361473b67f8a46cbe1a | |
parent | 217283caeaf5fc19e671a56547610ceb42e2ea7b (diff) | |
download | irssi-566485c3ab7ebd6494e471c7e1a742fee5acfec9.zip |
Don't die with "/SET -default"
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3212 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/fe-common/core/fe-settings.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c index 8dba8f73..7cb0ee2a 100644 --- a/src/fe-common/core/fe-settings.c +++ b/src/fe-common/core/fe-settings.c @@ -83,6 +83,10 @@ 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; |