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


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

Review Comment:
   This assignment operation may be meaningless, because if an error is made 
here, `earpm` and `earpm->asyncEventAckTopic` will not be used.



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