ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=48e954137fa7e636175fa5928efa73cab6883dd5

commit 48e954137fa7e636175fa5928efa73cab6883dd5
Author: Andy Williams <[email protected]>
Date:   Wed Nov 30 01:51:46 2016 +0000

    files: Avoid missing mime check
---
 src/bin/edi_filepanel.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/edi_filepanel.c b/src/bin/edi_filepanel.c
index 6b8a5c1..0c6ff7f 100644
--- a/src/bin/edi_filepanel.c
+++ b/src/bin/edi_filepanel.c
@@ -179,8 +179,11 @@ _get_provider_from_hashset(const char *filename)
    if ( !mime )
      {
        mime = efreet_mime_type_get(filename);
-       eina_hash_add(mime_entries, filename, strdup(mime));
+
+       if (mime)
+         eina_hash_add(mime_entries, filename, strdup(mime));
      }
+
    return edi_content_provider_for_mime_get(mime);
 }
 

-- 


Reply via email to