# HG changeset patch # User Christian Hammond # Date 1053250735 0 # Node ID 908f3d9ee660f6c6e50b86b536226385f10302b7 # Parent 7d1a44cbd34747b15cfad8170b8b1b5209f64411 [gaim-migrate @ 5810] Fix fix. committer: Tailor Script diff -r 7d1a44cbd347 -r 908f3d9ee660 src/gtkdebug.c --- 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("%s: ", 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);