Skip to content
Snippets Groups Projects
Commit 4699dd38 authored by Nick Schermer's avatar Nick Schermer
Browse files

Avoid segfault with null mime-type (bug #8390).

parent 22827012
No related branches found
No related tags found
No related merge requests found
......@@ -978,6 +978,8 @@ thunar_uca_model_get_default (void)
static inline ThunarUcaTypes
types_from_mime_type (const gchar *mime_type)
{
if (mime_type == NULL)
return 0;
if (strcmp (mime_type, "inode/directory") == 0)
return THUNAR_UCA_TYPE_DIRECTORIES;
else if (strncmp (mime_type, "audio/", 6) == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment