Bug fix: Dupes export fn. does not compile with clang
authorColin Clark <cclark@carbon>
Mon, 13 Jan 2020 16:40:05 +0000 (16:40 +0000)
committerColin Clark <cclark@carbon>
Mon, 13 Jan 2020 16:40:05 +0000 (16:40 +0000)
Eliminate "self-comparison always evaluates to true" error

src/dupe.c

index 5f9f9cb..532aea2 100644 (file)
@@ -3874,7 +3874,7 @@ static void export_duplicates_data_save_cb(FileDialog *fdlg, gpointer data)
                output_string = g_string_append(output_string, g_strdup_printf("%d", match_count));
                output_string = g_string_append(output_string, sep);
 
-               if ((dupe_match_find_parent(edd->dupewindow, di) == di) == (DUPE_SELECT_GROUP1 == DUPE_SELECT_GROUP1))
+               if ((dupe_match_find_parent(edd->dupewindow, di) == di))
                        {
                        output_string = g_string_append(output_string, "1");
                        }