Fix build warnings in branch Tizen 21/221021/2 accepted/tizen/unified/20200101.120627 submit/tizen/20191230.003618
authorSudipto <sudipto.bal@samsung.com>
Thu, 26 Dec 2019 09:45:13 +0000 (15:15 +0530)
committerSudipto <sudipto.bal@samsung.com>
Fri, 27 Dec 2019 07:45:40 +0000 (13:15 +0530)
Change-Id: Icbd2d5a93a3099f2dfeb2478ee69e2bdcc62a389
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
src/bt-share-ui-view.c

index cfc52ee..73a83e7 100644 (file)
@@ -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);