diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-10-08 11:20:31 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-10-08 11:20:31 -0400 |
commit | f2b1f1af83e96f8f98fbf2a5c663d8d058f2a66d (patch) | |
tree | 385c3551e328dd4588cdbee346ed33c66d506915 /src/env/__libc_start_main.c | |
parent | 0a96a37f06fda78ce3674b425888b1fc090578aa (diff) | |
download | musl-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.c | 2 |
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); |