You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2021/03/02 16:56:19 UTC

[GitHub] [celix] pnoltes commented on a change in pull request #326: Feature/zmq v2 fixes

pnoltes commented on a change in pull request #326:
URL: https://github.com/apache/celix/pull/326#discussion_r585737908



##########
File path: bundles/pubsub/pubsub_admin_zmq/v2/src/pubsub_zmq_topic_receiver.c
##########
@@ -133,7 +133,7 @@ pubsub_zmq_topic_receiver_t* pubsub_zmqTopicReceiver_create(celix_bundle_context
     pubsub_zmq_topic_receiver_t *receiver = calloc(1, sizeof(*receiver));
     receiver->ctx = ctx;
     receiver->logHelper = logHelper;
-    receiver->serializerType = serializerType;
+    receiver->serializerType = strndup(serializerType, 1024*1024);

Review comment:
       use celix_utils_strdup which underwater uses strndup

##########
File path: libs/utils/include/hash_map.h
##########
@@ -75,6 +75,8 @@ UTILS_EXPORT void *hashMap_put(hash_map_pt map, void *key, void *value);
 
 UTILS_EXPORT void *hashMap_remove(hash_map_pt map, const void *key);
 
+UTILS_EXPORT void *hashMap_removeFreeKey(hash_map_pt map, const void *key);

Review comment:
       :+1: 




----------------------------------------------------------------
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.

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