diff libpurple/plugins/log_reader.c @ 25218:bdd00a7113d7

propagate from branch 'im.pidgin.pidgin' (head f3891f3348abfe90fbe60a054833c12075aa8df4) to branch 'im.pidgin.cpw.malu.xmpp.attention' (head d235bb23dbe13535f85e071d6c4f42e07ac6e0ce)
author Marcus Lundblad <ml@update.uu.se>
date Sun, 16 Nov 2008 15:39:46 +0000
parents f3c48d7db093
children 8d1e8060b1d8
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c	Thu Nov 13 19:51:47 2008 +0000
+++ b/libpurple/plugins/log_reader.c	Sun Nov 16 15:39:46 2008 +0000
@@ -1971,7 +1971,7 @@
 	c = contents;
 	line = contents;
 
-	while (*c) {
+	while (c && *c) {
 		gboolean is_in_message = FALSE;
 
 		if (purple_str_has_prefix(line, QIP_LOG_IN_MESSAGE_ESC) ||