Browse Source

fix a potential issue uncovered by coverity

Julius Pfrommer 7 years ago
parent
commit
d92283ebdf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/ua_services_view.c

+ 1 - 1
src/server/ua_services_view.c

@@ -584,7 +584,7 @@ walkBrowsePath(UA_Server *server, UA_Session *session, const UA_BrowsePath *path
 
         /* When no targets are left or an error occurred. None of next's
          * elements will be copied to result->targets */
-        if(nextCount == 0 || result->statusCode != UA_STATUSCODE_GOOD) {
+        if(*nextCount == 0 || result->statusCode != UA_STATUSCODE_GOOD) {
             UA_assert(*currentCount == 0);
             UA_assert(*nextCount == 0);
             return;