Fixed the crash issue 76/130976/2
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 25 May 2017 01:04:59 +0000 (10:04 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 25 May 2017 01:05:51 +0000 (10:05 +0900)
Change-Id: I9edd951f6429f4494c5f2350e4acbffec951c050
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
agent/download-agent-file.c
packaging/download-provider.spec

index ea6d5cf..f9c7c70 100755 (executable)
@@ -429,6 +429,7 @@ da_ret_t __decide_file_path(da_info_t *da_info)
        DA_SECURE_LOGI("candidate file name [%s]", file_name);
 
        if (!extension
+               && file_info->mime_type
                && strncmp(file_info->mime_type, "application/json", strlen("application/json"))
                && strncmp(file_info->mime_type, "application/x-xz", strlen("application/x-xz"))
                && strncmp(file_info->mime_type, "application/rss+xml", strlen("application/rss+xml"))) {
index 3a831c5..532a7a4 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.79
+Version:    2.1.80
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0