[tracker] rasqal: Fix rasqal_query_get_variable
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker] rasqal: Fix rasqal_query_get_variable
- Date: Thu, 16 Apr 2009 10:17:41 -0400 (EDT)
commit 50ce1a132b5767bae75289d91268b37b359bcdad
Author: Jürg Billeter <j bitron ch>
Date: Wed Dec 10 15:32:09 2008 +0100
rasqal: Fix rasqal_query_get_variable
---
src/rasqal/rasqal_query.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rasqal/rasqal_query.c b/src/rasqal/rasqal_query.c
index 65f1ad6..b4f00c2 100644
--- a/src/rasqal/rasqal_query.c
+++ b/src/rasqal/rasqal_query.c
@@ -795,10 +795,10 @@ rasqal_query_get_all_variable_sequence(rasqal_query* query)
rasqal_variable*
rasqal_query_get_variable(rasqal_query* query, int idx)
{
- if(!query->selects || idx < 0 || idx > query->select_variables_count)
+ if(!query->selects || idx < 0 || idx >= query->select_variables_count)
return NULL;
- return rasqal_variables_table_get(query->vars_table, idx);
+ return (rasqal_variable*)raptor_sequence_get_at(query->selects, idx);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]