diff options
Diffstat (limited to 'src/pq/pq.c')
-rw-r--r-- | src/pq/pq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pq/pq.c b/src/pq/pq.c index c8deb8193..aa852902a 100644 --- a/src/pq/pq.c +++ b/src/pq/pq.c | |||
@@ -47,11 +47,11 @@ GNUNET_PQ_exec_prepared (struct GNUNET_PQ_Context *db, | |||
47 | /* new scope to allow stack allocation without alloca */ | 47 | /* new scope to allow stack allocation without alloca */ |
48 | { | 48 | { |
49 | /* Scratch buffer for temporary storage */ | 49 | /* Scratch buffer for temporary storage */ |
50 | void *scratch[len]; | 50 | void *scratch[GNUNET_NZL (len)]; |
51 | /* Parameter array we are building for the query */ | 51 | /* Parameter array we are building for the query */ |
52 | void *param_values[len]; | 52 | void *param_values[GNUNET_NZL (len)]; |
53 | int param_lengths[len]; | 53 | int param_lengths[GNUNET_NZL (len)]; |
54 | int param_formats[len]; | 54 | int param_formats[GNUNET_NZL (len)]; |
55 | unsigned int off; | 55 | unsigned int off; |
56 | /* How many entries in the scratch buffer are in use? */ | 56 | /* How many entries in the scratch buffer are in use? */ |
57 | unsigned int soff; | 57 | unsigned int soff; |
@@ -178,7 +178,7 @@ GNUNET_PQ_extract_result (PGresult *result, | |||
178 | *spec->result_size = spec->dst_size; | 178 | *spec->result_size = spec->dst_size; |
179 | } | 179 | } |
180 | return GNUNET_OK; | 180 | return GNUNET_OK; |
181 | cleanup: | 181 | cleanup: |
182 | for (unsigned int j = 0; j < i; j++) | 182 | for (unsigned int j = 0; j < i; j++) |
183 | if (NULL != rs[j].cleaner) | 183 | if (NULL != rs[j].cleaner) |
184 | rs[j].cleaner (rs[j].cls, | 184 | rs[j].cleaner (rs[j].cls, |