Static Analysis UNREACHABLE_CODE.RET 70/312570/1 accepted/tizen_unified accepted/tizen_unified_dev accepted/tizen_unified_toolchain accepted/tizen_unified_x accepted/tizen_unified_x_asan tizen accepted/tizen/unified/20240612.160737 accepted/tizen/unified/dev/20240620.002932 accepted/tizen/unified/toolchain/20240624.121713 accepted/tizen/unified/x/20240614.011715 accepted/tizen/unified/x/asan/20240625.092950
authorMd. Omar Faruque <omar.faruque@samsung.com>
Tue, 11 Jun 2024 14:21:00 +0000 (10:21 -0400)
committerMd. Omar Faruque <omar.faruque@samsung.com>
Tue, 11 Jun 2024 14:21:00 +0000 (10:21 -0400)
[Project] TizenUICore
[BinType] AP
[Customer] ALL

[Issue#] N/A
[Request] Dev
[Occurrence Version] 0.3.8

[Problem] Static Analysis UNREACHABLE_CODE.RET
[Cause & Measure] Fail case condition missing.
[Checking Method] Self-test

[Team] SRBD Tizen UI Core
[Developer] Md. Omar Faruque [omar.faruque]
[Solution company] SRBD
[Change Type] Code change

Change-Id: Ie292c1a5efc58870b7392d0066a51f992b13bc82
Signed-off-by: Md. Omar Faruque <omar.faruque@samsung.com>
src/boot.c

index bf259ae..d3b335d 100755 (executable)
@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
 
        int boot_type = -1;
        boot_type = __check_on_off_type(&args);
-       if (boot_type < 0) {
+       if (boot_type <= 0) {
                __E("Failed to get on off type or UNKNOWN_TYPE: %d", boot_type);
                return 1;
        }