[sysprof] libsysprof-capture: fix comparison of translation item



commit 44772d243e59ac67c87cdf16592a201fd2161704
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 5 19:30:15 2019 -0700

    libsysprof-capture: fix comparison of translation item

 src/libsysprof-capture/sysprof-capture-writer-cat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof-capture/sysprof-capture-writer-cat.c 
b/src/libsysprof-capture/sysprof-capture-writer-cat.c
index 092bfdd..54523c5 100644
--- a/src/libsysprof-capture/sysprof-capture-writer-cat.c
+++ b/src/libsysprof-capture/sysprof-capture-writer-cat.c
@@ -87,7 +87,7 @@ compare_by_src (gconstpointer a,
                 gconstpointer b)
 {
   const TranslateItem *itema = a;
-  const TranslateItem *itemb = a;
+  const TranslateItem *itemb = b;
 
   if (itema->src < itemb->src)
     return -1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]