[TSAM-5549][TSAM-5570]Create folder issue resolved 60/76660/2 submit/tizen_mobile/20160628.135118
authorshubham kumar <shubham.srib@samsung.com>
Sat, 25 Jun 2016 08:34:55 +0000 (14:04 +0530)
committershubham kumar <shubham.srib@samsung.com>
Sat, 25 Jun 2016 08:46:33 +0000 (14:16 +0530)
Change-Id: I5b469c21aedf007f5b810991da32a05bea075a87
Signed-off-by: shubham kumar <shubham.srib@samsung.com>
src/common/mf-fm-svc-wrapper.c

index ac94eac..e4b5537 100755 (executable)
@@ -63,15 +63,12 @@ static int __mf_fm_svc_wrapper_COMESFROM(const char *fullpath)
                return MYFILE_ERR_STORAGE_TYPE_ERROR;
        }
 
-       if (PHONE_FOLDER == NULL) {
-               return MYFILE_ERR_STORAGE_TYPE_ERROR;
-       }
-       if (MEMORY_FOLDER == NULL) {
-               return MYFILE_ERR_STORAGE_TYPE_ERROR;
-       }
-
        int len_phone = strlen(PHONE_FOLDER);
-       int len_memory = strlen(MEMORY_FOLDER);
+       int len_memory = 0;
+
+       if (MEMORY_FOLDER) {
+               len_memory = strlen(MEMORY_FOLDER);
+       }
 
        if (strncmp(fullpath, PHONE_FOLDER, len_phone) == 0) {
                return MYFILE_PHONE;