mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
only the first of --home / --config parameters were parsed, which broke eg.
irssi which was started with --config and /UPGRADEd. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2401 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
7b70a3d91a
commit
2891a871b7
@ -159,12 +159,9 @@ void core_init_paths(int argc, char *argv[])
|
||||
len = strlen(irssi_dir);
|
||||
if (irssi_dir[len-1] == G_DIR_SEPARATOR)
|
||||
irssi_dir[len-1] = '\0';
|
||||
break;
|
||||
}
|
||||
if (strncmp(argv[n], "--config=", 9) == 0) {
|
||||
} else if (strncmp(argv[n], "--config=", 9) == 0) {
|
||||
g_free_not_null(irssi_config_file);
|
||||
irssi_config_file = convert_home(argv[n]+9);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user