From dc88e493723ea4398378cf8d70335cc3861190da Mon Sep 17 00:00:00 2001 From: Sudipto Date: Thu, 26 Dec 2019 15:15:13 +0530 Subject: [PATCH] Fix build warnings in branch Tizen Change-Id: Icbd2d5a93a3099f2dfeb2478ee69e2bdcc62a389 Signed-off-by: Sudipto --- src/bt-share-ui-view.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bt-share-ui-view.c b/src/bt-share-ui-view.c index cfc52ee..73a83e7 100644 --- a/src/bt-share-ui-view.c +++ b/src/bt-share-ui-view.c @@ -967,9 +967,8 @@ static bt_file_type_e __get_file_type(const char *name) 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") || @@ -1081,7 +1080,10 @@ static void __bt_tr_data_item_sel(void *data, Evas_Object *obj, void *event_info 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); -- 2.7.4