changeset 5430:908f3d9ee660

[gaim-migrate @ 5810] Fix fix. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 18 May 2003 09:38:55 +0000
parents 7d1a44cbd347
children 49f857d4b754
files src/gtkdebug.c
diffstat 1 files changed, 16 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkdebug.c	Sun May 18 09:23:49 2003 +0000
+++ b/src/gtkdebug.c	Sun May 18 09:38:55 2003 +0000
@@ -187,21 +187,28 @@
 
 		gchar *esc_s, *cat_s, *ts_s, *s;
 
-		if (category == NULL)
+		if (category == NULL) {
 			cat_s = g_strdup("");
-		else
+			ts_s = g_strdup("");
+		}
+		else {
 			cat_s = g_strdup_printf("<b>%s:</b> ", category);
 
-		if (debug_win->timestamps) {
-			gchar mdate[64];
-			time_t mtime = time(NULL);
+			/*
+			 * If the category is not NULL, then do timestamps.
+			 * This IS right. :)
+			 */
+			if (debug_win->timestamps) {
+				gchar mdate[64];
+				time_t mtime = time(NULL);
 
-			strftime(mdate, sizeof(mdate), "%H:%M:%S", localtime(&mtime));
+				strftime(mdate, sizeof(mdate), "%H:%M:%S", localtime(&mtime));
 
-			ts_s = g_strdup_printf("(%s) ", mdate);
+				ts_s = g_strdup_printf("(%s) ", mdate);
+			}
+			else
+				ts_s = g_strdup("");
 		}
-		else
-			ts_s = g_strdup("");
 
 		esc_s = g_markup_escape_text(arg_s, -1);