Browse Source

Fix: Correct boolean check on input parameters

Thomas Jürges 4 years ago
parent
commit
8268e5bb09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/pubsub/tutorial_pubsub_subscribe.c

+ 1 - 1
examples/pubsub/tutorial_pubsub_subscribe.c

@@ -38,7 +38,7 @@ static void fillTestDataSetMetaData(UA_DataSetMetaDataType *pMetaData);
 static void
 addPubSubConnection(UA_Server *server, UA_String *transportProfile,
                     UA_NetworkAddressUrlDataType *networkAddressUrl) {
-    if((server == NULL) && (transportProfile == NULL) &&
+    if((server == NULL) || (transportProfile == NULL) ||
         (networkAddressUrl == NULL)) {
         return;
     }