1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -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:
Valentin Batz 2004-12-22 18:47:38 +00:00 committed by vb
parent 8b772ff6ec
commit df1e690a1e

View File

@ -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;