Fixed build warning (#558)
author최종헌/MDE Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Mon, 1 Jul 2024 23:58:41 +0000 (08:58 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 1 Jul 2024 23:58:41 +0000 (08:58 +0900)
* Fix build warning

NativeLauncher/hydra/hydra_main.cc

index 7ced0a3..a1bd3f0 100644 (file)
@@ -123,8 +123,7 @@ static void preloadAssemblies()
        while ((dp = readdir(dirp)) != NULL) {
                if (dp->d_type != DT_DIR) {
                        // Make sure that the file name follows naming conventions.
-                       if (dp->d_name &&
-                               isdigit(dp->d_name[0]) &&
+                       if (isdigit(dp->d_name[0]) &&
                                isdigit(dp->d_name[1]) &&
                                (dp->d_name[2] == '.')) {
                                preloadFiles.insert(preloadDir + dp->d_name);