ctdb-daemon: Fix maybe-uninitialized error with picky developer
authorAmitay Isaacs <amitay@gmail.com>
Fri, 1 Mar 2019 03:18:31 +0000 (14:18 +1100)
committerJeremy Allison <jra@samba.org>
Fri, 1 Mar 2019 17:21:15 +0000 (17:21 +0000)
commit278eb236ae9f8640c3281a836869c9eacbc2b1b3
treea53b850b82542622ef17440ca46bca7a57c0a458
parent42e96696a097c3c73230c7be8d107e444de1c8c7
ctdb-daemon: Fix maybe-uninitialized error with picky developer

263/386] Compiling ctdb/server/ctdb_recovery_helper.c
In file included from ../../server/ctdb_recovery_helper.c:24:0:
../../server/ctdb_recovery_helper.c: In function ‘main’:
../../../lib/talloc/talloc.h:911:34: error: ‘mem_ctx’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 #define TALLOC_FREE(ctx) do { if (ctx != NULL) { talloc_free(ctx); ctx=NULL; } } while(0)

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
ctdb/server/ctdb_recovery_helper.c