From 2b2b904ada32d64f8f497bf941cb44b1ce1ad7d2 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sun, 6 May 2007 16:22:09 +0000 Subject: [PATCH] Do not call iconfig_get_str when target is NULL. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4487 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/recode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/recode.c b/src/core/recode.c index aadc09b2..d8692ea9 100644 --- a/src/core/recode.c +++ b/src/core/recode.c @@ -188,7 +188,7 @@ char *recode_out(const SERVER_REC *server, const char *str, const char *target) to = iconfig_get_str("conversions", tagtarget, NULL); g_free(tagtarget); } - if (to == NULL || *to == '\0') + if ((to == NULL || *to == '\0') && target != NULL) to = iconfig_get_str("conversions", target, NULL); if ((to == NULL || *to == '\0') && server != NULL) to = iconfig_get_str("conversions", server->tag, NULL);