diff options
author | Radoslaw Czerski <r.czerski@samsung.com> | 2016-06-01 10:33:56 +0200 |
---|---|---|
committer | Lukasz Stanislawski <l.stanislaws@samsung.com> | 2016-06-02 08:09:47 -0700 |
commit | e97753377939c5c8e9e6c56809a26715bca1e4cb (patch) | |
tree | b808289295325b5131f7c73064a0c52ce240016d /src | |
parent | 0e184f5a050cc7031a65839965f70b10c754c1cf (diff) | |
download | share-panel-e97753377939c5c8e9e6c56809a26715bca1e4cb.tar.gz share-panel-e97753377939c5c8e9e6c56809a26715bca1e4cb.tar.bz2 share-panel-e97753377939c5c8e9e6c56809a26715bca1e4cb.zip |
Set "*/*" mime if file to share have no extension.submit/tizen/20160605.070045
Change-Id: Ib37c4b518a35543e985bc064477d71562ad7c5a9
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/list.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -90,6 +90,7 @@ static inline void __get_mime(const char *file_path, char **mime) if (strncmp(file_path, "/", 1) == 0) { res = __get_file_ext(file_path, &ext); if (0 != res) { + *mime = NULL; _D("__get_file_ext error.."); } else { mime_type_get_mime_type(ext, mime); @@ -204,8 +205,8 @@ static void __create_multi_share_list(app_control_h control, Eina_List **matchli __get_mime(data_array[i], &mime); if (!mime) { - _E("no mime"); - goto out; + _E("No mime. Setting mime to '*/*' "); + mime = strndup("*/*", 3); } EINA_LIST_FOREACH(mime_list, l, tmp) { |