[ostree] ostree-run-triggers: fix typo in filename comparison function
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] ostree-run-triggers: fix typo in filename comparison function
- Date: Mon, 20 Aug 2012 21:02:26 +0000 (UTC)
commit 1d93a743dce1c764d3745ea8c23da574040b375e
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Fri Aug 17 17:13:01 2012 +0200
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
src/triggers/ostree-run-triggers.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/triggers/ostree-run-triggers.c b/src/triggers/ostree-run-triggers.c
index 472ca96..4ac1f1c 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]