From: John Hodge Date: Tue, 31 Jul 2012 11:48:01 +0000 (+0800) Subject: Usermode/libc - Fix bug in strtol X-Git-Tag: rel0.15~706^2~90 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=158abc6bf2479b03c9de96813df216109a8a7bc7;p=tpg%2Facess2.git Usermode/libc - Fix bug in strtol - Uninitialised 'neg' caused random negative values --- diff --git a/Usermode/Libraries/libc.so_src/stdlib.c b/Usermode/Libraries/libc.so_src/stdlib.c index 82180424..c91106c4 100644 --- a/Usermode/Libraries/libc.so_src/stdlib.c +++ b/Usermode/Libraries/libc.so_src/stdlib.c @@ -73,7 +73,7 @@ EXPORT void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void EXPORT long long strtoll(const char *str, char **end, int base) { - int neg; + int neg = 0; long long ret = 0; if( !str || base < 0 || base > 36 || base == 1 ) {