Fix bug of getting storage type 50/161150/1 accepted/tizen/4.0/unified/20171122.143240 submit/tizen_4.0/20171122.021641
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 21 Nov 2017 08:25:08 +0000 (17:25 +0900)
committerhj kim <backto.kim@samsung.com>
Wed, 22 Nov 2017 02:06:38 +0000 (11:06 +0900)
Change-Id: Ie5046030cd84ca73059e4d4e654477d596a125fb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
lib/media-util-dcm.c

index d8ba669..e77c716 100755 (executable)
@@ -355,6 +355,7 @@ int dcm_request_extract_face_async(const unsigned int request_id, const char *pa
 {
        int err = MS_MEDIA_ERR_NONE;
        int exist = -1;
+       ms_user_storage_type_e storage_type = -1;
 
        MSAPI_RETVM_IF(!MS_STRING_VALID(path), MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid path");
 
@@ -370,8 +371,7 @@ int dcm_request_extract_face_async(const unsigned int request_id, const char *pa
        }
        close(exist);
 
-       ms_user_storage_type_e storage_type = -1;
-       storage_type = ms_user_get_storage_type(uid, path, &storage_type);
+       ms_user_get_storage_type(uid, path, &storage_type);
 
        if ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL)) {
                MSAPI_DBG_ERR("The path(%s) is invalid", path);