- Fix errors that are remained, not checked from previous obs logs
Change-Id: I3293d0993a9c89205bfd4c5bef24c3a3d9b4c5cf
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
#endif
#pragma GCC diagnostic ignored "-Wstringop-truncation"
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
#define TryReturn(condition, expr, returnValue, ...)\
if (!(condition)) { \
if (__builtin_expect(profile != TIZEN_PROFILE_UNKNOWN, 1))
return profile;
- char *val = NULL;
dictionary *dic = iniparser_load(INI_PATH);
if (dic == NULL) {
return profile;
}
- val = iniparser_getstring(dic, INI_KEYWORD_PROFILE, NULL);
+ const char* val = iniparser_getstring(dic, INI_KEYWORD_PROFILE, NULL);
if (val != NULL) {
switch (*val) {
error_message = NULL; \
}
#define gfree(list) \
- g_list_free(list); \
- list = NULL;
+ if (list) { \
+ g_list_free(list); \
+ list = NULL; \
+ }
int success_cnt;
int fail_cnt;
printf_red("Test FAILED\n");
}
- if (privilege_list != NULL)
- gfree(privilege_list);
+ gfree(privilege_list);
__print_line();
printf_red("Test FAILED\n");
}
- if (privilege_list != NULL)
- gfree(privilege_list);
+ gfree(privilege_list);
__print_line();