changeset 24425:f3c48d7db093

Fix CID #367
author Richard Laager <rlaager@wiktel.com>
date Fri, 14 Nov 2008 06:44:44 +0000
parents 2d677e8fe6d0
children f9503aa61fb4 94fa7211eb98
files libpurple/plugins/log_reader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/log_reader.c	Fri Nov 14 06:42:18 2008 +0000
+++ b/libpurple/plugins/log_reader.c	Fri Nov 14 06:44:44 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) ||