Ethereal-dev: [Ethereal-dev] [Patch] Add missing va_end() to simple_dialog.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Graeme Hewson <ghewson@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 04 Jun 2002 09:02:57 +0100
 
--- simple_dialog.c.orig	Fri Mar 15 02:44:49 2002
+++ simple_dialog.c	Tue Jun  4 08:34:41 2002
@@ -122,6 +122,7 @@
   /* 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);