瀏覽代碼

Events: Allocate with StatusCode type for StatusCode array

Julius Pfrommer 6 年之前
父節點
當前提交
6a3169d698
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/server/ua_subscription_events.c

+ 2 - 2
src/server/ua_subscription_events.c

@@ -234,8 +234,8 @@ UA_Server_filterEvent(UA_Server *server, const UA_NodeId *eventNode, UA_EventFil
     }
     /* EventFilterResult currently isn't being used
     notification->result.selectClauseResultsSize = filter->selectClausesSize;
-    notification->result.selectClauseResults = (UA_StatusCode *) UA_Array_new(filter->selectClausesSize,
-                                                                               &UA_TYPES[UA_TYPES_VARIANT]);
+    notification->result.selectClauseResults = (UA_StatusCode *)
+        UA_Array_new(filter->selectClausesSize, &UA_TYPES[UA_TYPES_STATUSCODE]);
     if (!notification->result->selectClauseResults) {
         UA_EventFieldList_deleteMembers(&notification->fields);
         UA_EventFilterResult_deleteMembers(&notification->result);