Fix build error for toolchain upgrade 92/294892/1 accepted/tizen_unified accepted/tizen_unified_dev tizen accepted/tizen/unified/20240620.050756 accepted/tizen/unified/dev/20230726.115500 accepted/tizen/unified/dev/20240701.072804
authorJihoon Jung <jh8801.jung@samsung.com>
Wed, 28 Jun 2023 07:55:54 +0000 (16:55 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Wed, 28 Jun 2023 07:56:38 +0000 (16:56 +0900)
Change-Id: I4c31f0d4ab49691770ef31fca76548b525011273
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
test/mdg-manager.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 8006911..b78a861
@@ -1083,7 +1083,7 @@ static int run_request_eject(MManager *mm, struct menu_data *menu)
        }
 
        int grp_idx = 1;
-       if (group_idx != NULL && strlen(group_idx)) {
+       if (strlen(group_idx)) {
                grp_idx = (unsigned short)strtol(group_idx, NULL, 10);
                if (0 >= grp_idx) {
                        msgp("Invalid index. set to 1");
@@ -1100,7 +1100,7 @@ static int run_request_eject(MManager *mm, struct menu_data *menu)
        }
 
        int dev_idx = 1;
-       if (device_idx != NULL && strlen(device_idx)) {
+       if (strlen(device_idx)) {
                dev_idx = (unsigned short)strtol(device_idx, NULL, 10);
                if (0 >= dev_idx) {
                        msgp("Invalid index. set to 1");