Эх сурвалжийг харах

Checks pointer before dereference

Signed-off-by: CapXilinx <melik-merkumians@acin.tuwien.ac.at>
CapXilinx 8 жил өмнө
parent
commit
5ffa9b37d5

+ 1 - 1
source/src/cip/appcontype.c

@@ -430,7 +430,7 @@ bool ConnectionWithSameConfigPointExists(const EipUint32 config_point) {
     CipConnectionObject *connection = node->data;
     OPENER_ASSERT(NULL != connection);
     if (config_point == connection->configuration_path.instance_id) {
-      return (NULL != connection);
+      return true;
     }
     node = node->next;
   }