summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/dcc/fe-dcc-send.c
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-06-07 00:15:05 +0200
committerGitHub <noreply@github.com>2017-06-07 00:15:05 +0200
commit5e9a3ad80cb1bb5b8655d5fff6ee9d1dfc4419a1 (patch)
treee4eb609c6dd4a8b3102f861ba4deafe3aac2df78 /src/fe-common/irc/dcc/fe-dcc-send.c
parentfc67fd5111ac84cd101d961fc9a5b0bc1b25613b (diff)
parent52bb06ccd9f9bd639a454045eba1235e4133b034 (diff)
downloadirssi-5e9a3ad80cb1bb5b8655d5fff6ee9d1dfc4419a1.zip
Merge pull request #714 from dequis/dcc-fname-gcc-warnings
fe-dcc-(get|send): Fix some -Wpointer-compare with newer gcc
Diffstat (limited to 'src/fe-common/irc/dcc/fe-dcc-send.c')
-rw-r--r--src/fe-common/irc/dcc/fe-dcc-send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/irc/dcc/fe-dcc-send.c b/src/fe-common/irc/dcc/fe-dcc-send.c
index 1fc43abd..7920bedc 100644
--- a/src/fe-common/irc/dcc/fe-dcc-send.c
+++ b/src/fe-common/irc/dcc/fe-dcc-send.c
@@ -108,7 +108,7 @@ static void dcc_error_close_not_found(const char *type, const char *nick,
g_return_if_fail(fname != NULL);
if (g_ascii_strcasecmp(type, "SEND") != 0) return;
- if (fname == '\0') fname = "(ANY)";
+ if (fname == NULL || *fname == '\0') fname = "(ANY)";
printformat(NULL, NULL, MSGLEVEL_DCC,
IRCTXT_DCC_SEND_NOT_FOUND, nick, fname);
}