aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/plugin_datastore_sqlite.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index d51fd3e01..380238bb5 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -908,6 +908,10 @@ sqlite_plugin_get_key (void *cls,
908 GNUNET_SQ_query_param_end 908 GNUNET_SQ_query_param_end
909 }; 909 };
910 910
911 if (! use_type)
912 memset (&params[3], 0, sizeof (struct GNUNET_SQ_QueryParam));
913 if (! use_key)
914 memset (&params[2], 0, sizeof (struct GNUNET_SQ_QueryParam));
911 if (random) 915 if (random)
912 { 916 {
913 rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, 917 rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,