mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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
This commit is contained in:
parent
c647c4dd51
commit
52617a691a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user