aboutsummaryrefslogtreecommitdiffstats
path: root/src/assuan-support.c
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2009-12-15 01:01:40 +0000
committerMarcus Brinkmann <[email protected]>2009-12-15 01:01:40 +0000
commit1094c0a5d351953c26cb73196e79735c70f82112 (patch)
treef277e9c1770f5dd700fa341cbf9bf7fb474e74e6 /src/assuan-support.c
parentTest on sgid process (diff)
downloadgpgme-1094c0a5d351953c26cb73196e79735c70f82112.tar.gz
gpgme-1094c0a5d351953c26cb73196e79735c70f82112.zip
2009-12-15 Marcus Brinkmann <[email protected]>
* assuan-support.c (my_spawn): Calloc, not malloc, the fd_items.
Diffstat (limited to 'src/assuan-support.c')
-rw-r--r--src/assuan-support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assuan-support.c b/src/assuan-support.c
index d5defa8a..c4d390ce 100644
--- a/src/assuan-support.c
+++ b/src/assuan-support.c
@@ -130,7 +130,7 @@ my_spawn (assuan_context_t ctx, pid_t *r_pid, const char *name,
}
/* fd_in, fd_out, terminator */
i += 3;
- fd_items = malloc (sizeof (struct spawn_fd_item_s) * i);
+ fd_items = calloc (i, sizeof (struct spawn_fd_item_s));
if (! fd_items)
return -1;
i = 0;