[tracker] libtracker-sparql: Add some braces around statement
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-sparql: Add some braces around statement
- Date: Mon, 28 Nov 2016 01:02:01 +0000 (UTC)
commit 5def9323e66c87d1c7fd210b518443cbde22de50
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Nov 27 20:00:49 2016 +0100
libtracker-sparql: Add some braces around statement
Multiline statements get braces around.
src/libtracker-sparql/tracker-resource.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-resource.c b/src/libtracker-sparql/tracker-resource.c
index e76852e..0e94ad9 100644
--- a/src/libtracker-sparql/tracker-resource.c
+++ b/src/libtracker-sparql/tracker-resource.c
@@ -1146,7 +1146,7 @@ generate_turtle (TrackerResource *resource,
g_string_append (data->string, " ");
g_hash_table_iter_init (&iter, priv->properties);
- if (g_hash_table_iter_next (&iter, (gpointer *)&property, (gpointer *)&value))
+ if (g_hash_table_iter_next (&iter, (gpointer *)&property, (gpointer *)&value)) {
while (TRUE) {
generate_turtle_property (property, value, data->string, data->all_namespaces,
data->our_namespaces);
@@ -1159,6 +1159,7 @@ generate_turtle (TrackerResource *resource,
break;
}
}
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]