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:
parent
b5e80f3507
commit
2db9e25f5e
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user