From: Giovanni Campagna Date: Fri, 17 Aug 2012 15:13:01 +0000 (+0200) Subject: ostree-run-triggers: fix typo in filename comparison function X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1915 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1d93a743dce1c764d3745ea8c23da574040b375e;p=ostree.git ostree-run-triggers: fix typo in filename comparison function The comparison function was comparing the first file to itself, and this resulted in triggers being run in random order. https://bugzilla.gnome.org/show_bug.cgi?id=682297 --- diff --git a/src/triggers/ostree-run-triggers.c b/src/triggers/ostree-run-triggers.c index 472ca962..4ac1f1c9 100644 --- a/src/triggers/ostree-run-triggers.c +++ b/src/triggers/ostree-run-triggers.c @@ -76,7 +76,7 @@ compare_files_by_basename (gconstpointer ap, gconstpointer bp) { GFile *a = *(GFile**)ap; - GFile *b = *(GFile**)ap; + GFile *b = *(GFile**)bp; char *name_a, *name_b; int c;