summaryrefslogtreecommitdiff
path: root/ar.c
diff options
context:
space:
mode:
Diffstat (limited to 'ar.c')
-rw-r--r--ar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ar.c b/ar.c
index 2636b1b..bb9c9ed 100644
--- a/ar.c
+++ b/ar.c
@@ -196,6 +196,7 @@ ar_glob_match (int desc UNUSED, const char *mem, int truncated UNUSED,
{
/* We have a match. Add it to the chain. */
struct nameseq *new = xmalloc (state->size);
+ memset (new, '\0', state->size);
new->name = strcache_add (concat (state->arname, mem, ")"));
new->next = state->chain;
state->chain = new;