[recipes/recipes-1.0] Fix gr_ingredient_get_names
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/recipes-1.0] Fix gr_ingredient_get_names
- Date: Sun, 7 May 2017 20:15:56 +0000 (UTC)
commit df62111c97610b4a2bea32ca06a528638d04c689
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]