Check the type by special function for conditions 33/236333/1 accepted/tizen/5.5/unified/20200617.192419 submit/tizen_5.5/20200616.092114
authorKichan Kwon <k_c.kwon@samsung.com>
Tue, 16 Jun 2020 04:51:02 +0000 (13:51 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Tue, 16 Jun 2020 08:51:20 +0000 (17:51 +0900)
- In current, only tizenid use it

Change-Id: I3c985a7d848f40fcacbfd5c5846c7dd082478188
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/system_info.c

index 122a4b1db0046f25571edd427fb2a25f3ccc3c16..b81c656687bb5a6f6c14c6f0505f1e2d54b7ab9e 100644 (file)
@@ -173,7 +173,10 @@ static int system_info_get_type(enum tag_type tag, const char *key,
                }
        }
 
-       return SYSTEM_INFO_ERROR_INVALID_PARAMETER;
+       if (tag == TAG_TYPE_PLATFORM)
+               return system_info_get_type_file(key, type);
+       else
+               return SYSTEM_INFO_ERROR_INVALID_PARAMETER;
 }
 
 static int system_info_get_bool(enum tag_type tag, const char *key, bool *value)