ctdb-daemon: Fix maybe-uninitialized error with picky developer
[vlendec/samba-autobuild/.git] / ctdb / server / ctdb_recovery_helper.c
index 57e12b4703738235d3d6c26de1cb9bc585441fe6..eed71da5df8db8c49732b5db3e77c9c39914ddb2 100644 (file)
@@ -2737,7 +2737,7 @@ int main(int argc, char *argv[])
 {
        int write_fd;
        const char *sockpath;
-       TALLOC_CTX *mem_ctx;
+       TALLOC_CTX *mem_ctx = NULL;
        struct tevent_context *ev;
        struct ctdb_client_context *client;
        int ret = 0;