Commit 52617a69 authored by Bastien Nocera's avatar Bastien Nocera Committed by Bastien Nocera
Browse files

avoid crash when selecting a new filter and clicking a different directory

2003-09-15  Bastien Nocera  <hadess@hadess.net>

	* gtkfilefilter.c: (gtk_file_filter_filter): avoid crash when
	selecting a new filter and clicking a different directory
parent c647c4dd
......@@ -354,7 +354,8 @@ gtk_file_filter_filter (GtkFileFilter *filter,
switch (rule->type)
{
case FILTER_RULE_MIME_TYPE:
if (strcmp (rule->u.mime_type, filter_info->mime_type) == 0)
if (filter_info->mime_type != NULL
&& strcmp (rule->u.mime_type, filter_info->mime_type) == 0)
return TRUE;
break;
case FILTER_RULE_PATTERN:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment