You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2021/12/18 14:20:33 UTC
[plc4x] branch develop updated: fix: back ported the fix for a little error back to develop
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 45913fc fix: back ported the fix for a little error back to develop
45913fc is described below
commit 45913fc130acff6bc2a51675ecd9de2db329a8fb
Author: cdutz <ch...@c-ware.de>
AuthorDate: Sat Dec 18 15:20:27 2021 +0100
fix: back ported the fix for a little error back to develop
---
plc4c/transports/tcp/src/transport_tcp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4c/transports/tcp/src/transport_tcp.c b/plc4c/transports/tcp/src/transport_tcp.c
index bd7aa3a..e2d89be 100644
--- a/plc4c/transports/tcp/src/transport_tcp.c
+++ b/plc4c/transports/tcp/src/transport_tcp.c
@@ -142,7 +142,7 @@ plc4c_return_code plc4c_transport_tcp_select_message_function(
return INTERNAL_ERROR;
}
uint8_t* message_buffer = malloc(sizeof(uint8_t) * message_size);
- if(message_buffer < 0) {
+ if(message_buffer == NULL) {
return NO_MEMORY;
}
// Sanity check