/pidgin/main: b94a61dfd064: Backport c1a41f0d1916
Tomasz Wasilczyk <[email protected]>
| Newsgroups | gmane.comp.gnome.gaim.cvs |
|---|---|
| Message-ID | <[email protected]> |
Changeset: b94a61dfd0648325c83bcd602cef32a590d975d7 Author: Tomasz Wasilczyk <[email protected]> Date: 2014-05-07 11:56 +0200 Branch: release-2.x.y URL: https://hg.pidgin.im/pidgin/main/rev/b94a61dfd064 Description: Backport c1a41f0d1916 diffstat: libpurple/plugins/log_reader.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diffs (14 lines): diff --git a/libpurple/plugins/log_reader.c b/libpurple/plugins/log_reader.c --- a/libpurple/plugins/log_reader.c +++ b/libpurple/plugins/log_reader.c @@ -1841,7 +1841,9 @@ static GList *qip_logger_list(PurpleLogT c++; /* Find the last '(' character. */ - if ((tmp = strchr(c, '\n')) != NULL) { + if (!c) { + /* do nothing */ + } else if ((tmp = strchr(c, '\n')) != NULL) { while (*tmp && *tmp != '(') --tmp; c = tmp; } else {