Merge pull request #714 from dequis/dcc-fname-gcc-warnings

fe-dcc-(get|send): Fix some -Wpointer-compare with newer gcc

(cherry picked from commit 5e9a3ad80cb1bb5b8655d5fff6ee9d1dfc4419a1)
This commit is contained in:
ailin-nemui 2017-06-07 00:15:05 +02:00 committed by Ailin Nemui
parent 5e46c6dda0
commit 1bcd7a8dd0
2 changed files with 2 additions and 2 deletions

View File

@ -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, "GET") != 0) return;
if (fname == '\0') fname = "(ANY)";
if (fname == NULL || *fname == '\0') fname = "(ANY)";
printformat(NULL, NULL, MSGLEVEL_DCC,
IRCTXT_DCC_GET_NOT_FOUND, nick, fname);
}

View File

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