PengZheng commented on code in PR #781:
URL: https://github.com/apache/celix/pull/781#discussion_r1918257136


##########
bundles/event_admin/remote_provider/remote_provider_mqtt/src/celix_earpm_impl.c:
##########
@@ -147,10 +147,12 @@ celix_event_admin_remote_provider_mqtt_t* 
celix_earpm_create(celix_bundle_contex
         return NULL;
     }
 
-    if (asprintf(&earpm->syncEventAckTopic, 
CELIX_EARPM_SYNC_EVENT_ACK_TOPIC_PREFIX"%s", earpm->fwUUID) < 0) {
+    earpm->syncEventAckTopic = NULL;

Review Comment:
   Given that earpm is calloced, it is unnecessary to set it to NULL explicitly.



-- 
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: dev-unsubscr...@celix.apache.org

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

Reply via email to