From 5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f Mon Sep 17 00:00:00 2001 From: Monsta Date: Sun, 16 Nov 2014 17:13:24 +0300 Subject: avoid dereferencing NULL pointer Closes https://github.com/mate-desktop/mate-applets/pull/114 --- battstat/battstat-upower.c | 1 + 1 file changed, 1 insertion(+) (limited to 'battstat/battstat-upower.c') diff --git a/battstat/battstat-upower.c b/battstat/battstat-upower.c index 792be860..1326a9cc 100644 --- a/battstat/battstat-upower.c +++ b/battstat/battstat-upower.c @@ -320,6 +320,7 @@ error_dialog( const char *fmt , ...) va_start(ap, fmt); char str[1000]; vsprintf(str, fmt, ap); + va_end(ap); GtkWidget *dialog; dialog = gtk_message_dialog_new( NULL, 0, GTK_MESSAGE_ERROR, -- cgit v1.2.1