ソースを参照

fix a potential issue uncovered by coverity

Julius Pfrommer 7 年 前
コミット
d92283ebdf
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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;