Fix bug of getting storage type 64/161064/3 submit/tizen/20171122.013254
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 01:27:12 +0000 (01:27 +0000)
Change-Id: Ie5046030cd84ca73059e4d4e654477d596a125fb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
lib/media-util-dcm.c

index c18056c..5174b27 100755 (executable)
@@ -360,6 +360,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");
 
@@ -375,8 +376,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);