Change-Id: I83733498ba00884ffa59134f903fcd586514d5f6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
GDir *dir = NULL;
GError *error = NULL;
const char *name;
+ bool find_item = false;
if (device_uuid == NULL) {
MS_DBG_ERR("device_uuid is NULL");
if (*device_uuid == NULL)
ret = MS_MEDIA_ERR_INTERNAL;
+ find_item = true;
+
break;
}
}
dir = NULL;
}
+ if (!find_item) {
+ *device_uuid = NULL;
+ ret = MS_MEDIA_ERR_FILE_NOT_EXIST;
+ MS_DBG_ERR("[%s]DEV INFO NOT EXIST", root_path);
+ }
+
return ret;
}