[recipes/completion-draft: 1/3] Fix gr_ingredient_get_names
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/completion-draft: 1/3] Fix gr_ingredient_get_names
- Date: Fri, 21 Apr 2017 19:11:21 +0000 (UTC)
commit 11b66450edcb2a592bf6570f3ad7c577684d64d8
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]