mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Merge pull request #714 from dequis/dcc-fname-gcc-warnings
fe-dcc-(get|send): Fix some -Wpointer-compare with newer gcc
This commit is contained in:
commit
5e9a3ad80c
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user