dir = g_dir_open(search_path, 0, &error);
if (dir != NULL && error == NULL) {
while ((name = g_dir_read_name(dir))) {
- if (strcmp(name, scan_ignore) == 0) {
+ if (g_strcmp0(name, scan_ignore) == 0) {
media_content_sec_debug("Ignore path[%s]", search_path);
find = TRUE;
break;
break;
} else {
/*If root path, Stop Scanning*/
- if ((storage_type == MEDIA_SVC_STORAGE_INTERNAL) && (STRING_VALID(MEDIA_ROOT_PATH_INTERNAL) && strcmp(search_path, MEDIA_ROOT_PATH_INTERNAL) == 0)) {
+ if ((storage_type == MEDIA_SVC_STORAGE_INTERNAL) && (STRING_VALID(MEDIA_ROOT_PATH_INTERNAL) && g_strcmp0(search_path, MEDIA_ROOT_PATH_INTERNAL) == 0)) {
break;
- } else if ((storage_type == MEDIA_SVC_STORAGE_EXTERNAL) && (STRING_VALID(MEDIA_ROOT_PATH_SDCARD)) && (strcmp(search_path, MEDIA_ROOT_PATH_SDCARD) == 0)) {
+ } else if ((storage_type == MEDIA_SVC_STORAGE_EXTERNAL) && (STRING_VALID(MEDIA_ROOT_PATH_SDCARD)) && (g_strcmp0(search_path, MEDIA_ROOT_PATH_SDCARD) == 0)) {
break;
- } else if ((storage_type == MEDIA_SVC_STORAGE_EXTERNAL_USB) && (STRING_VALID(MEDIA_ROOT_PATH_DISC)) && (strcmp(search_path, MEDIA_ROOT_PATH_DISC) == 0)) {
+ } else if ((storage_type == MEDIA_SVC_STORAGE_EXTERNAL_USB) && (STRING_VALID(MEDIA_ROOT_PATH_DISC)) && (g_strcmp0(search_path, MEDIA_ROOT_PATH_DISC) == 0)) {
break;
} else if (storage_type == MEDIA_SVC_STORAGE_EXTERNAL_USB) {
char *parent_folder_path = NULL;
bool is_root = FALSE;
parent_folder_path = g_path_get_dirname(search_path);
- if (STRING_VALID(MEDIA_ROOT_PATH_USB) && STRING_VALID(parent_folder_path) && (strcmp(parent_folder_path, MEDIA_ROOT_PATH_USB) == 0))
+ if (STRING_VALID(MEDIA_ROOT_PATH_USB) && STRING_VALID(parent_folder_path) && (g_strcmp0(parent_folder_path, MEDIA_ROOT_PATH_USB) == 0))
is_root = TRUE;
SAFE_FREE(parent_folder_path);
}
#ifdef _USE_SENIOR_MODE
if (_media_content_is_support_senior_mode()) {
- if ((storage_type == MEDIA_SVC_STORAGE_EXTERNAL) && (strcmp(search_path, MEDIA_ROOT_PATH_SENIOR_MODE) == 0))
+ if ((storage_type == MEDIA_SVC_STORAGE_EXTERNAL) && (g_strcmp0(search_path, MEDIA_ROOT_PATH_SENIOR_MODE) == 0))
break;
}
#endif
goto ERROR;
}
- if (strcmp(find_str, to_replace_str))
+ if (g_strcmp0(find_str, to_replace_str))
find = strstr(new_condition, find_str);
while (find != NULL) {