ctdb:tests: Add missing va_end() in ctdb_set_error()
authorAndreas Schneider <asn@samba.org>
Mon, 20 May 2019 13:52:12 +0000 (15:52 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 24 May 2019 06:07:08 +0000 (06:07 +0000)
Found by csbuild.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@samba.org>
ctdb/tests/src/ctdb_io_test.c

index 9cd02aa0eaa8704bc3ae4d50a41a98912f36169e..e3cb0a98ffe951e88713039cd57c9dad42bb5875 100644 (file)
@@ -29,6 +29,7 @@ void ctdb_set_error(struct ctdb_context *ctdb, const char *fmt, ...)
        va_list ap;
        va_start(ap, fmt);
        vprintf(fmt, ap);
+       va_end(ap);
        assert(false);
 }