fixed possible NULL pointer reference on sparc

This commit is contained in:
Nico Golde 2007-07-16 08:00:48 +02:00
parent 79b934f3fe
commit 081c33b786

2
ii.c
View File

@ -206,7 +206,7 @@ static void print_out(char *channel, char *buf) {
static char buft[18];
time_t t = time(0);
snprintf(server, sizeof(server), "-!- %s", channel);
if(channel) snprintf(server, sizeof(server), "-!- %s", channel);
if(strstr(buf, server)) channel="";
create_filepath(outfile, sizeof(outfile), channel, "out");
if(!(out = fopen(outfile, "a"))) return;