s3-cli: fix uninitialized variable.
[nivanova/samba.git] / source3 / libsmb / clilist.c
index 29b16cb1c5f50e0b8be41c995e05bc1e8dbb4063..b580172317a0a82a0becacdd014cb52c9a897d40 100644 (file)
@@ -618,10 +618,10 @@ static void cli_list_trans_done(struct tevent_req *subreq)
        int ff_searchcount;
        bool ff_eos;
        char *p, *p2;
-       uint32_t resume_key;
+       uint32_t resume_key = 0;
        int i;
        DATA_BLOB last_name_raw;
-       struct file_info *finfo;
+       struct file_info *finfo = NULL;
        size_t nlen, param_len;
 
        min_param = (state->first ? 6 : 4);
@@ -802,7 +802,7 @@ NTSTATUS cli_list_trans(struct cli_state *cli, const char *mask,
        struct event_context *ev;
        struct tevent_req *req;
        int i, num_finfo;
-       struct file_info *finfo;
+       struct file_info *finfo = NULL;
        NTSTATUS status = NT_STATUS_NO_MEMORY;
 
        if (cli_has_async_calls(cli)) {