瀏覽代碼

fix a false positive gcc warning

Julius Pfrommer 8 年之前
父節點
當前提交
f24a597fa6
共有 1 個文件被更改,包括 1 次插入1 次删除
  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));