diff options
author | David Robillard <d@drobilla.net> | 2008-12-13 19:50:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-12-13 19:50:44 +0000 |
commit | c8a89182621aebc9ce5cf65d72a64d08f118fc1b (patch) | |
tree | e7386392c6adec4d41fe2dec9c16ee7567fd37d3 /src | |
parent | 295faf6ffa2df8adc0a78f12906d2f9e1595641e (diff) | |
download | lilv-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')
-rw-r--r-- | src/plugin.c | 6 | ||||
-rw-r--r-- | src/query.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/plugin.c b/src/plugin.c index 7b5845b..6593029 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -470,9 +470,9 @@ slv2_plugin_get_value_by_qname_i18n(SLV2Plugin p, SLV2Values -slv2_plugin_get_value_for_subject(SLV2Plugin p, - SLV2Value subject, - SLV2Value predicate) +slv2_plugin_get_value_for_subject(SLV2Plugin p, + SLV2Value subject, + SLV2Value predicate) { if ( ! slv2_value_is_uri(subject)) { fprintf(stderr, "slv2_plugin_get_value_for_subject error: " 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); |