Bläddra i källkod

fix a false positive gcc warning

Julius Pfrommer 8 år sedan
förälder
incheckning
f24a597fa6
1 ändrade filer med 1 tillägg och 1 borttagningar
  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));