1
0
forked from bip/bip

add null pointer check to backlog_lines

In some configuration backlog_lines can return NULL
This commit is contained in:
Ben Byer 2009-01-22 10:14:33 +01:00 committed by Arnaud Cornet
parent 170d4d1e00
commit 43fe81e114

View File

@ -1318,7 +1318,7 @@ list_t *backlog_lines(log_t *log, const char *bl, const char *cli_nick,
_irc_line_append(&l, "PRIVMSG");
_irc_line_append(&l, dest);
_irc_line_append(&l, "End of backlog");
list_add_last(ret, irc_line_to_string(&l));
if (ret) list_add_last(ret, irc_line_to_string(&l));
_irc_line_deinit(&l);
}
}