mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
Fixed /RELOAD crashing without parameters.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1664 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9668285467
commit
802ee7564c
2 changed files with 5 additions and 5 deletions
|
|
@ -556,9 +556,9 @@ int settings_reread(const char *fname)
|
|||
CONFIG_REC *tempconfig;
|
||||
char *str;
|
||||
|
||||
str = convert_home(fname);
|
||||
str = fname == NULL ? NULL : convert_home(fname);
|
||||
tempconfig = parse_configfile(str);
|
||||
g_free(str);
|
||||
g_free_not_null(str);
|
||||
|
||||
if (tempconfig == NULL) {
|
||||
signal_emit("gui dialog", 2, "error", g_strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue