Explorar o código

fix from cmetcalf to make sure we clear the auxvt table before using it

Mike Frysinger %!s(int64=18) %!d(string=hai) anos
pai
achega
80cf5ec280
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      libc/misc/internals/__uClibc_main.c

+ 1 - 0
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++;