1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

Saving theme didn't complain if the save failed.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@732 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-13 21:24:44 +00:00 committed by cras
parent ee8c26ba98
commit e51eba853a

View File

@ -478,7 +478,7 @@ static void theme_save(THEME_REC *theme)
path = g_strdup_printf("%s/.irssi/%s", g_get_home_dir(), path = g_strdup_printf("%s/.irssi/%s", g_get_home_dir(),
g_basename(theme->path)); g_basename(theme->path));
str = strrchr(path, '/'); str = strrchr(path, '/');
if (strncmp(theme->path, path, (int) (path-str)) != 0 && if (strncmp(theme->path, path, (int) (path-str)) == 0 ||
config_write(config, str, 0660) == -1) config_write(config, str, 0660) == -1)
ok = FALSE; ok = FALSE;
} }