diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-06-04 11:24:35 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-06-04 11:24:35 +0000 |
commit | f103a8a076cbae0ed47ac7131f7bcfaf13b0b2f2 (patch) | |
tree | e7d15a2f3bd533bf7532fcd441ad91ad642a5d63 /gtk/simple_dialog.c | |
parent | bc5a543e035319a0e19de70e5be33baec886c320 (diff) |
From Graeme Hewson: varargs code cleanup in "simple_dialog.c".
svn path=/trunk/; revision=5617
Diffstat (limited to 'gtk/simple_dialog.c')
-rw-r--r-- | gtk/simple_dialog.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/simple_dialog.c b/gtk/simple_dialog.c index 8bda7f5a04..62cd109921 100644 --- a/gtk/simple_dialog.c +++ b/gtk/simple_dialog.c @@ -1,7 +1,7 @@ /* simple_dialog.c * Simple message dialog box routines. * - * $Id: simple_dialog.c,v 1.9 2002/03/05 11:56:00 guy Exp $ + * $Id: simple_dialog.c,v 1.10 2002/06/04 11:24:35 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -122,6 +122,7 @@ simple_dialog(gint type, gint *btn_mask, gchar *msg_format, ...) { /* Load our vararg list into the message string */ va_start(ap, msg_format); vsnprintf(message, ESD_MAX_MSG_LEN, msg_format, ap); + va_end(ap); msg_label = gtk_label_new(message); gtk_label_set_justify(GTK_LABEL(msg_label), GTK_JUSTIFY_FILL); |