[PATCH] grl-data: fix segfault



From: Lionel Landwerlin <lionel g landwerlin linux intel com>

Signed-off-by: Lionel Landwerlin <lionel g landwerlin linux intel com>
---
 src/data/grl-data.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/data/grl-data.c b/src/data/grl-data.c
index 4efcabc..95ed6bb 100644
--- a/src/data/grl-data.c
+++ b/src/data/grl-data.c
@@ -177,7 +177,7 @@ get_sample_key (GrlKeyID key)
 
   if (!related_keys) {
     GRL_WARNING ("Related keys not found for key \"%s\"",
-                 grl_metadata_key_get_name (related_keys->data));
+                 grl_metadata_key_get_name (key));
     return NULL;
   } else {
     return related_keys->data;
-- 
1.7.4.1



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