From: Ronnie Sahlberg Date: Mon, 13 Jan 2014 14:36:38 +0000 (-0800) Subject: Make sure cookie is initialized before we use it. X-Git-Tag: upstream/1.9.6^2~132 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ecbd14a153df4af805af10e4ce90f8c6644e380d;p=deb_libnfs.git Make sure cookie is initialized before we use it. --- diff --git a/lib/libnfs.c b/lib/libnfs.c index 6183719..b19a373 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -2465,7 +2465,7 @@ static void nfs_opendir2_cb(struct rpc_context *rpc, int status, void *command_d struct nfsdir *nfsdir = data->continue_data; struct nfsdirent *nfsdirent; struct entry3 *entry; - uint64_t cookie; + uint64_t cookie = 0; struct rdpe_cb_data *rdpe_cb_data; assert(rpc->magic == RPC_CONTEXT_MAGIC); @@ -2593,7 +2593,7 @@ static void nfs_opendir_cb(struct rpc_context *rpc, int status, void *command_da struct nfs_context *nfs = data->nfs; struct nfsdir *nfsdir = data->continue_data; struct entryplus3 *entry; - uint64_t cookie; + uint64_t cookie = 0; assert(rpc->magic == RPC_CONTEXT_MAGIC);