diff options
author | Monsta <[email protected]> | 2014-11-16 17:13:24 +0300 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-11-26 09:54:20 +0100 |
commit | 5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f (patch) | |
tree | 9002f0a320290a516767e181059ee8be18818ca8 /battstat/battstat-upower.c | |
parent | c5e3a3c796cb9397871e6f4da5d9afa454e311a6 (diff) | |
download | mate-applets-5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f.tar.bz2 mate-applets-5401e9117ce50ecfba3d86b0d4d84ef8fbdc396f.tar.xz |
avoid dereferencing NULL pointer
Closes https://github.com/mate-desktop/mate-applets/pull/114
Diffstat (limited to 'battstat/battstat-upower.c')
-rw-r--r-- | battstat/battstat-upower.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |