summaryrefslogtreecommitdiff
path: root/libc/misc/internals/__uClibc_main.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-11-27 15:25:32 +0000
committerMike Frysinger <vapier@gentoo.org>2006-11-27 15:25:32 +0000
commit80cf5ec28044c0b93b13fcc7b415c7aa90aae0ec (patch)
tree6488864a12c94eb49034865c34c59c50f8e3f35e /libc/misc/internals/__uClibc_main.c
parentf88a9032ce69147fb34ab0d3a27fdcd4d1952ece (diff)
fix from cmetcalf to make sure we clear the auxvt table before using it
Diffstat (limited to 'libc/misc/internals/__uClibc_main.c')
-rw-r--r--libc/misc/internals/__uClibc_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index ae595cf4e..7578a97fb 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -296,6 +296,7 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
#ifdef __ARCH_USE_MMU__
/* Pull stuff from the ELF header when possible */
+ memset(auxvt, 0x00, sizeof(auxvt));
aux_dat = (unsigned long*)__environ;
while (*aux_dat) {
aux_dat++;