1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

don't crash when trying to print with non-existent module in theme..

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2965 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-10-18 13:19:45 +00:00 committed by cras
parent b5e80f3507
commit 2db9e25f5e

View File

@ -70,7 +70,7 @@ void printformat_module_dest_args(const char *module, TEXT_DEST_REC *dest,
str = format_get_text_theme_charargs(theme, module, dest, str = format_get_text_theme_charargs(theme, module, dest,
formatnum, arglist); formatnum, arglist);
if (*str != '\0') print_line(dest, str); if (str != NULL && *str != '\0') print_line(dest, str);
g_free(str); g_free(str);
} }