changeset 1366:155db3303ebb

[gaim-migrate @ 1376] hm committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 24 Dec 2000 00:44:45 +0000
parents 6a752e171b26
children ad346597b7b2
files src/prefs.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/prefs.c	Fri Dec 22 14:38:02 2000 +0000
+++ b/src/prefs.c	Sun Dec 24 00:44:45 2000 +0000
@@ -1974,17 +1974,18 @@
 	va_list ap;
 	gchar *s;
 
+	va_start(ap, fmt);
+	s = g_strdup_vprintf(fmt, ap);
+	va_end(ap);
+
 	if (general_options & OPT_GEN_DEBUG && dw) {
-		va_start(ap, fmt);
-		s = g_strdup_vprintf(fmt, ap);
-		va_end(ap);
-
 		gtk_text_insert(GTK_TEXT(dw->entry), NULL, NULL, NULL, s, -1);
+	}
+
 #ifdef DEBUG
-		g_print("%s", s);
+	g_print("%s", s);
 #endif
-		g_free(s);
-	}
+	g_free(s);
 }
 
 static gint handle_delete(GtkWidget *w, GdkEvent *event, void *dummy)