Julius Pfrommer 10 anni fa
parent
commit
2ee8df44f7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/networklayer_tcp.c

+ 1 - 1
examples/networklayer_tcp.c

@@ -52,7 +52,7 @@ typedef struct TCPConnectionHandle {
 
 UA_Int32 NetworklayerTCP_new(NetworklayerTCP **newlayer, UA_ConnectionConfig localConf,
 							 UA_UInt32 port) {
-    if(!*newlayer) return UA_ERROR;
+    if(!newlayer) return UA_ERROR;
     *newlayer = malloc(sizeof(NetworklayerTCP));
     if(newlayer == UA_NULL)
         return UA_ERROR;