filechooserentry: Avoid an uninitialized value
authorTimm Bäder <mail@baedert.org>
Thu, 16 Feb 2017 11:23:47 +0000 (12:23 +0100)
committerdjb <db0451@gmail.com>
Fri, 17 Feb 2017 21:46:51 +0000 (21:46 +0000)
|= with a garbage value on the left side results in a still-garbage
value.

gtk/gtkfilechooserentry.c

index 44c686c658c93e5ea17efedf1b02b2697632b75e..02f9d5542f1a49ffd9481850cc4a081d6ed4d72a 100644 (file)
@@ -213,7 +213,7 @@ match_func (GtkEntryCompletion *compl,
       needed_flags = gtk_file_filter_get_needed (chooser_entry->current_filter);
 
       filter_info.display_name = g_file_info_get_display_name (file_info);
-      filter_info.contains |= GTK_FILE_FILTER_DISPLAY_NAME;
+      filter_info.contains = GTK_FILE_FILTER_DISPLAY_NAME;
 
       if (needed_flags & GTK_FILE_FILTER_MIME_TYPE)
         {