[libgovirt] Add missing va_end() call in error case
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] Add missing va_end() call in error case
- Date: Mon, 8 Sep 2014 13:27:39 +0000 (UTC)
commit 2cca79a71bf9191309aa9b450902dd870eda49bf
Author: Christophe Fergeau <cfergeau redhat com>
Date: Mon Sep 8 15:27:08 2014 +0200
Add missing va_end() call in error case
Spotted by coverity.
govirt/ovirt-utils.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/govirt/ovirt-utils.c b/govirt/ovirt-utils.c
index 8fa7312..0654280 100644
--- a/govirt/ovirt-utils.c
+++ b/govirt/ovirt-utils.c
@@ -65,6 +65,7 @@ ovirt_rest_xml_node_get_content(RestXmlNode *node, ...)
node = rest_xml_node_find(node, node_name);
if (node == NULL) {
g_debug("could not find XML node '%s'", node_name);
+ va_end(args);
return NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]