1
0
Fork 0

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
This commit is contained in:
Emanuele Giaquinta 2007-05-06 16:22:09 +00:00 committed by exg
parent 6f9dbc794d
commit 2b2b904ada
1 changed files with 1 additions and 1 deletions

View File

@ -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);