Skip to content

Commit

Permalink
refactor(pubsub): Add a clarifying comment to RT use of the DataSetRe…
Browse files Browse the repository at this point in the history
…ader
  • Loading branch information
jpfr committed Sep 9, 2023
1 parent 6342cfc commit 8fa2b1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pubsub/ua_pubsub_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,8 @@ UA_ReaderGroup_decodeAndProcessRT(UA_Server *server, UA_ReaderGroup *readerGroup
memset(matches, 0, sizeof(UA_Boolean)* readerGroup->readersCount); /* Pacify warning */
#endif

/* Decode headers necessary for checking identifier */
/* Decode headers necessary for checking identifier. This can use malloc.
* So enable membufAlloc if you need RT timings. */
UA_NetworkMessage currentNetworkMessage;
memset(&currentNetworkMessage, 0, sizeof(UA_NetworkMessage));
UA_StatusCode rv = UA_NetworkMessage_decodeHeaders(buf, &pos, &currentNetworkMessage);
Expand Down

0 comments on commit 8fa2b1b

Please sign in to comment.