diff options
author | Valentin Batz <senneth@irssi.org> | 2004-12-22 18:47:38 +0000 |
---|---|---|
committer | vb <vb@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2004-12-22 18:47:38 +0000 |
commit | df1e690a1e7010c5eb152ac3a125aa194890a8ff (patch) | |
tree | c08a59c4a8e7d928218b9e2a5a8eaac4b3f4d29d /src | |
parent | 8b772ff6ec44e391906c17360f7dbaea179c0d88 (diff) | |
download | irssi-df1e690a1e7010c5eb152ac3a125aa194890a8ff.zip |
Don't crash with an empty nick argument from the command line.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3694 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-common/core/fe-common-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c index ff26d2ca..cecb6dac 100644 --- a/src/fe-common/core/fe-common-core.c +++ b/src/fe-common/core/fe-common-core.c @@ -420,7 +420,7 @@ void fe_common_core_finish_init(void) #endif setup_changed = FALSE; - if (cmdline_nick != NULL) { + if (cmdline_nick != NULL && *cmdline_nick != '\0') { /* override nick found from setup */ settings_set_str("nick", cmdline_nick); setup_changed = TRUE; |