summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugin.c6
-rw-r--r--src/query.c5
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);