mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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
|
#endif
|
||||||
|
|
||||||
setup_changed = FALSE;
|
setup_changed = FALSE;
|
||||||
if (cmdline_nick != NULL) {
|
if (cmdline_nick != NULL && *cmdline_nick != '\0') {
|
||||||
/* override nick found from setup */
|
/* override nick found from setup */
|
||||||
settings_set_str("nick", cmdline_nick);
|
settings_set_str("nick", cmdline_nick);
|
||||||
setup_changed = TRUE;
|
setup_changed = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user