summaryrefslogtreecommitdiff
path: root/src/namestore/plugin_namestore_sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/plugin_namestore_sqlite.c')
-rw-r--r--src/namestore/plugin_namestore_sqlite.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c
index 2ffc12f92..23af3960d 100644
--- a/src/namestore/plugin_namestore_sqlite.c
+++ b/src/namestore/plugin_namestore_sqlite.c
@@ -501,16 +501,10 @@ get_records_and_call_iterator (struct Plugin *plugin,
GNUNET_SQ_result_spec_end
};
- if (NULL == zone_key)
- {
- ret = GNUNET_SQ_extract_result (stmt,
- rsx);
- }
- else
- {
- ret = GNUNET_SQ_extract_result (stmt,
- rs);
- }
+ ret = GNUNET_SQ_extract_result (stmt,
+ (NULL == zone_key)
+ ? rsx
+ : rs);
if ( (GNUNET_OK != ret) ||
(record_count > 64 * 1024) )
{