libpurple/plugins/log_reader.c

branch
release-2.x.y
changeset 40925
a4a68d315090
parent 40907
8aafbbfc4f42
child 42954
a98ee2d89a0a
--- a/libpurple/plugins/log_reader.c	Thu Jun 03 19:30:26 2021 -0500
+++ b/libpurple/plugins/log_reader.c	Thu Jun 03 19:31:56 2021 -0500
@@ -1111,9 +1111,13 @@
 		}
 
 		msn_logger_parse_timestamp(message, &tm);
-
-		timestamp = g_strdup_printf("<font size=\"2\">(%02u:%02u:%02u)</font> ",
-				tm->tm_hour, tm->tm_min, tm->tm_sec);
+		if(tm != NULL) {
+			timestamp = g_strdup_printf("<font size=\"2\">(%02u:%02u:%02u)</font> ",
+					tm->tm_hour, tm->tm_min, tm->tm_sec);
+		} else {
+			timestamp = g_strdup_printf("<font size=\"2\">(00:00:00)</font> ");
+		}
+
 		text = g_string_append(text, timestamp);
 		g_free(timestamp);
 
@@ -2233,7 +2237,6 @@
 			log->logger = amsn_logger;
 			log->logger_data = data;
 			list = g_list_prepend(list, log);
-			found_start = FALSE;
 
 			purple_debug_info("aMSN logger",
 			                  "Found log for %s:"

mercurial