mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue