diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-06 16:22:09 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-06 16:22:09 +0000 |
commit | 2b2b904ada32d64f8f497bf941cb44b1ce1ad7d2 (patch) | |
tree | 148714c69b93de031f606209c85620d2fd29b445 | |
parent | 6f9dbc794d92326555fef2aa23baee72162f4578 (diff) | |
download | irssi-2b2b904ada32d64f8f497bf941cb44b1ce1ad7d2.zip |
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
-rw-r--r-- | src/core/recode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |