fixed possible NULL pointer reference on sparc
This commit is contained in:
parent
79b934f3fe
commit
081c33b786
2
ii.c
2
ii.c
|
@ -206,7 +206,7 @@ static void print_out(char *channel, char *buf) {
|
||||||
static char buft[18];
|
static char buft[18];
|
||||||
time_t t = time(0);
|
time_t t = time(0);
|
||||||
|
|
||||||
snprintf(server, sizeof(server), "-!- %s", channel);
|
if(channel) snprintf(server, sizeof(server), "-!- %s", channel);
|
||||||
if(strstr(buf, server)) channel="";
|
if(strstr(buf, server)) channel="";
|
||||||
create_filepath(outfile, sizeof(outfile), channel, "out");
|
create_filepath(outfile, sizeof(outfile), channel, "out");
|
||||||
if(!(out = fopen(outfile, "a"))) return;
|
if(!(out = fopen(outfile, "a"))) return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user