summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2014-11-02 12:51:36 +0300
committerStefano Karapetsas <[email protected]>2014-11-28 08:37:31 +0100
commit3042b45cf9d10a0e194daf457c619c368edaab4f (patch)
treeecb0981650c4cca9900c811b054154a544daea0a
parent0e650dca3eb412d90c8c443b30f094665102ace2 (diff)
downloadmate-desktop-3042b45cf9d10a0e194daf457c619c368edaab4f.tar.bz2
mate-desktop-3042b45cf9d10a0e194daf457c619c368edaab4f.tar.xz
va_start should be paired with va_end
Closes https://github.com/mate-desktop/mate-desktop/pull/137
-rw-r--r--libmate-desktop/mate-bg.c2
-rw-r--r--libmate-desktop/mate-rr-config.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/libmate-desktop/mate-bg.c b/libmate-desktop/mate-bg.c
index ffd5753..2ff4e92 100644
--- a/libmate-desktop/mate-bg.c
+++ b/libmate-desktop/mate-bg.c
@@ -2821,6 +2821,8 @@ stack_is (SlideShow *parser,
s = va_arg (args, const char *);
}
+ va_end (args);
+
l1 = stack;
l2 = parser->stack->head;
diff --git a/libmate-desktop/mate-rr-config.c b/libmate-desktop/mate-rr-config.c
index b126f46..2cd002c 100644
--- a/libmate-desktop/mate-rr-config.c
+++ b/libmate-desktop/mate-rr-config.c
@@ -131,6 +131,8 @@ stack_is (Parser *parser,
stack = g_list_prepend (stack, (gpointer)s);
s = va_arg (args, const char *);
}
+
+ va_end (args);
l1 = stack;
l2 = parser->stack->head;