mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
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
This commit is contained in:
parent
8b772ff6ec
commit
df1e690a1e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user