Explorar o código

fix a potential issue uncovered by coverity

Julius Pfrommer %!s(int64=7) %!d(string=hai) anos
pai
achega
d92283ebdf
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;