summaryrefslogtreecommitdiffstats
path: root/src/query.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-13 19:50:44 +0000
committerDavid Robillard <d@drobilla.net>2008-12-13 19:50:44 +0000
commitc8a89182621aebc9ce5cf65d72a64d08f118fc1b (patch)
treee7386392c6adec4d41fe2dec9c16ee7567fd37d3 /src/query.c
parent295faf6ffa2df8adc0a78f12906d2f9e1595641e (diff)
downloadlilv-c8a89182621aebc9ce5cf65d72a64d08f118fc1b.tar.gz
lilv-c8a89182621aebc9ce5cf65d72a64d08f118fc1b.tar.bz2
lilv-c8a89182621aebc9ce5cf65d72a64d08f118fc1b.zip
Test querying for float values.
Fix slv2_plugin_get_value_for_subject test. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1868 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/query.c')
-rw-r--r--src/query.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/query.c b/src/query.c
index f4a6a0d..f32c4e0 100644
--- a/src/query.c
+++ b/src/query.c
@@ -53,7 +53,7 @@ slv2_query_get_variable_bindings(SLV2World world,
librdf_node* node =
librdf_query_results_get_binding_value(results, variable);
- if (!node) {
+ if (node == NULL) {
fprintf(stderr, "SLV2 ERROR: Variable %d bound to NULL.\n", variable);
librdf_query_results_next(results);
continue;
@@ -168,7 +168,8 @@ slv2_plugin_query_variable(SLV2Plugin plugin,
librdf_query_results* results = slv2_plugin_query(plugin, sparql_str);
- SLV2Values ret = slv2_query_get_variable_bindings(plugin->world, results, (int)variable);
+ SLV2Values ret = slv2_query_get_variable_bindings(plugin->world,
+ results, (int)variable);
librdf_free_query_results(results);