if (extn != NULL)
extn++;
- DBG("extn : %s", extn);
-
if (extn != NULL) {
+ DBG("extn : %s", extn);
if (!strcasecmp(extn, "png") || !strcasecmp(extn, "bmp") || !strcasecmp(extn, "gif") ||
!strcasecmp(extn, "jpg") || !strcasecmp(extn, "jpeg") || !strcasecmp(extn, "jpe") ||
!strcasecmp(extn, "jp2") || !strcasecmp(extn, "pjpeg") || !strcasecmp(extn, "tif") ||
else if (default_memory == BT_DEFAULT_MEM_MMC)
path = g_strdup_printf("%s/%s", BT_DOWNLOAD_MMC_FOLDER, info->file_path);
- INFO_SECURE("path : %s", path);
+ if (path)
+ INFO_SECURE("path : %s", path);
+ else
+ INFO_SECURE("path is empty");
if (path && access(path, F_OK) == 0)
__bt_open_file(path);