about summary refs log tree commit diff
path: root/src/env/__libc_start_main.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-10-08 11:20:31 -0400
committerRich Felker <dalias@aerifal.cx>2012-10-08 11:20:31 -0400
commitf2b1f1af83e96f8f98fbf2a5c663d8d058f2a66d (patch)
tree385c3551e328dd4588cdbee346ed33c66d506915 /src/env/__libc_start_main.c
parent0a96a37f06fda78ce3674b425888b1fc090578aa (diff)
downloadmusl-f2b1f1af83e96f8f98fbf2a5c663d8d058f2a66d.tar.gz
musl-f2b1f1af83e96f8f98fbf2a5c663d8d058f2a66d.tar.xz
musl-f2b1f1af83e96f8f98fbf2a5c663d8d058f2a66d.zip
ensure that buffer for decoding auxv at startup is initially zero
Diffstat (limited to 'src/env/__libc_start_main.c')
-rw-r--r--src/env/__libc_start_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env/__libc_start_main.c b/src/env/__libc_start_main.c
index 07613a52..e350fdb8 100644
--- a/src/env/__libc_start_main.c
+++ b/src/env/__libc_start_main.c
@@ -8,7 +8,7 @@ void __init_security(size_t *);
 
 void __init_libc(char **envp)
 {
-	size_t i, *auxv, aux[AUX_CNT];
+	size_t i, *auxv, aux[AUX_CNT] = { 0 };
 	__environ = envp;
 	for (i=0; envp[i]; i++);
 	libc.auxv = auxv = (void *)(envp+i+1);