From: Christian Grothoff Date: Tue, 30 Jan 2018 11:50:45 +0000 (+0100) Subject: fix datastore bind issue X-Git-Tag: v0.11.0pre66~226 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a882bcf1635612a5d65d7a2fd402acd0bf9355ff;p=oweals%2Fgnunet.git fix datastore bind issue --- 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, GNUNET_SQ_query_param_end }; + if (! use_type) + memset (¶ms[3], 0, sizeof (struct GNUNET_SQ_QueryParam)); + if (! use_key) + memset (¶ms[2], 0, sizeof (struct GNUNET_SQ_QueryParam)); if (random) { rvalue = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,