Procházet zdrojové kódy

fix a false positive gcc warning

Julius Pfrommer před 8 roky
rodič
revize
f24a597fa6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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));