Explorar el Código

fix a false positive gcc warning

Julius Pfrommer hace 8 años
padre
commit
f24a597fa6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/ua_subscription.c

+ 1 - 1
src/server/ua_subscription.c

@@ -384,7 +384,7 @@ void UA_Subscription_publishCallback(UA_Server *server, UA_Subscription *sub) {
 
     UA_PublishResponse *response = &pre->response;
     UA_NotificationMessage *message = &response->notificationMessage;
-    UA_NotificationMessageEntry *retransmission;
+    UA_NotificationMessageEntry *retransmission = NULL;
     if(notifications > 0) {
         /* Allocate the retransmission entry */
         retransmission = malloc(sizeof(UA_NotificationMessageEntry));