Gowrima commented on code in PR #2256:
URL: https://github.com/apache/zookeeper/pull/2256#discussion_r2110830872


##########
zookeeper-client/zookeeper-client-c/src/zookeeper.c:
##########
@@ -3596,7 +3603,10 @@ static completion_list_t* 
do_create_completion_entry(zhandle_t *zh, int xid,
         watcher_registration_t* wo, completion_head_t *clist,
         watcher_deregistration_t* wdo)
 {
-    completion_list_t *c = calloc(1, sizeof(completion_list_t));
+
+    completion_list_t *c = NULL;
+
+    c = calloc(1, sizeof(completion_list_t));

Review Comment:
   Done



##########
zookeeper-client/zookeeper-client-c/src/zookeeper.c:
##########
@@ -4651,10 +4661,10 @@ int zoo_amulti(zhandle_t *zh, int count, const zoo_op_t 
*ops,
     struct MultiHeader mh = {-1, 1, -1};
     struct oarchive *oa = create_buffer_oarchive();
     completion_head_t clist = { 0 };
+    int rc, index;
 
-    int rc = serialize_RequestHeader(oa, "header", &h);
+    rc = serialize_RequestHeader(oa, "header", &h);

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@zookeeper.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to