add null pointer check to backlog_lines
In some configuration backlog_lines can return NULL
This commit is contained in:
parent
170d4d1e00
commit
43fe81e114
@ -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, "PRIVMSG");
|
||||||
_irc_line_append(&l, dest);
|
_irc_line_append(&l, dest);
|
||||||
_irc_line_append(&l, "End of backlog");
|
_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);
|
_irc_line_deinit(&l);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user