[recipes] Fix gr_ingredient_get_names



commit b4861ee228da6d6e7d275fc0871be03f6cf06632
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 20 22:34:01 2017 -0400

    Fix gr_ingredient_get_names
    
    The function was using G_N_ELEMENTS on a non-static array,
    yielding 0. Use it on the right array instead.

 src/gr-ingredient.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-ingredient.c b/src/gr-ingredient.c
index 64e93e7..151cdf7 100644
--- a/src/gr-ingredient.c
+++ b/src/gr-ingredient.c
@@ -66,7 +66,7 @@ gr_ingredient_get_names (int *length)
         translate_names ();
 
         if (length)
-                *length = G_N_ELEMENTS (names) - 1;
+                *length = G_N_ELEMENTS (names_) - 1;
 
         return (const char **)names;
 }


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