[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: no 0-length VLAs
From: |
gnunet |
Subject: |
[gnunet] branch master updated: no 0-length VLAs |
Date: |
Wed, 10 May 2023 00:36:35 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new c863193d7 no 0-length VLAs
c863193d7 is described below
commit c863193d77f74378a321908eed7105eb3034977b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed May 10 00:36:32 2023 +0200
no 0-length VLAs
---
src/pq/pq.c | 10 +++++-----
1 file 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,
/* new scope to allow stack allocation without alloca */
{
/* Scratch buffer for temporary storage */
- void *scratch[len];
+ void *scratch[GNUNET_NZL (len)];
/* Parameter array we are building for the query */
- void *param_values[len];
- int param_lengths[len];
- int param_formats[len];
+ void *param_values[GNUNET_NZL (len)];
+ int param_lengths[GNUNET_NZL (len)];
+ int param_formats[GNUNET_NZL (len)];
unsigned int off;
/* How many entries in the scratch buffer are in use? */
unsigned int soff;
@@ -178,7 +178,7 @@ GNUNET_PQ_extract_result (PGresult *result,
*spec->result_size = spec->dst_size;
}
return GNUNET_OK;
-cleanup:
+ cleanup:
for (unsigned int j = 0; j < i; j++)
if (NULL != rs[j].cleaner)
rs[j].cleaner (rs[j].cls,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: no 0-length VLAs,
gnunet <=