Ensure all callers to the rpc_client/cli_pipe functions correctly
[kai/samba.git] / source3 / utils / smbtree.c
index 02001f0abbdfce1dddfbce21346bd97dc3b214b2..717ce650068d0e1737e302432a35da8d6df1afb3 100644 (file)
@@ -148,7 +148,7 @@ static bool get_rpc_shares(struct cli_state *cli,
                           void *state)
 {
        NTSTATUS status;
-       struct rpc_pipe_client *pipe_hnd;
+       struct rpc_pipe_client *pipe_hnd = NULL;
        TALLOC_CTX *mem_ctx;
        WERROR werr;
        struct srvsvc_NetShareInfoCtr info_ctr;