summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-10-18 13:19:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-10-18 13:19:45 +0000
commit2db9e25f5e072d3b8a425d4642b4a73ee5828ff7 (patch)
treed3d36d00a48cf291432464fd584d82308d3ff116
parentb5e80f35078e78671c918f110f07be531c86b0e7 (diff)
downloadirssi-2db9e25f5e072d3b8a425d4642b4a73ee5828ff7.zip
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
-rw-r--r--src/fe-common/core/printtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c
index dbd52343..e32b5943 100644
--- a/src/fe-common/core/printtext.c
+++ b/src/fe-common/core/printtext.c
@@ -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,
formatnum, arglist);
- if (*str != '\0') print_line(dest, str);
+ if (str != NULL && *str != '\0') print_line(dest, str);
g_free(str);
}