Change-Id: I5b469c21aedf007f5b810991da32a05bea075a87
Signed-off-by: shubham kumar <shubham.srib@samsung.com>
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;