diff options
Diffstat (limited to 'tests/testfilechooser.c')
-rw-r--r-- | tests/testfilechooser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c index 16ee76447e..2785fb85e4 100644 --- a/tests/testfilechooser.c +++ b/tests/testfilechooser.c @@ -90,7 +90,7 @@ static gboolean no_backup_files_filter (const GtkFileFilterInfo *filter_info, gpointer data) { - gsize len = strlen (filter_info->display_name); + gsize len = filter_info->display_name ? strlen (filter_info->display_name) : 0; if (len > 0 && filter_info->display_name[len - 1] == '~') return 0; else |