/pidgin/main: 506e67bca293: Silence warning when system messages...
Mike Ruprecht <[email protected]>
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: 506e67bca293dc59443e7a93ad408eef933cf08d Author: Mike Ruprecht <[email protected]> Date: 2016-01-22 02:11 -0600 Branch: default URL: https://hg.pidgin.im/pidgin/main/rev/506e67bca293 Description: Silence warning when system messages are being logged aka from == NULL diffstat: libpurple/log.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff --git a/libpurple/log.c b/libpurple/log.c --- a/libpurple/log.c +++ b/libpurple/log.c @@ -1334,7 +1334,8 @@ static gsize html_logger_write(PurpleLog if(!data->file) return 0; - escaped_from = g_markup_escape_text(from, -1); + escaped_from = g_markup_escape_text(from != NULL ? from : "<NULL>", + -1); image_corrected_msg = convert_image_tags(log, message); purple_markup_html_to_xhtml(image_corrected_msg, &msg_fixed, NULL); _______________________________________________ Commits mailing list [email protected] https://pidgin.im/cgi-bin/mailman/listinfo/commits