Author: blueswirl Date: Fri Apr 2 16:25:37 2010 New Revision: 731 URL: http://tracker.coreboot.org/trac/openbios/changeset/731
Log: Fix build
CC target/libc/vsprintf.o cc1: warnings being treated as errors ../libc/string.c: In function 'strncasecmp': ../libc/string.c:518: warning: '__res' may be used uninitialized in this function
Signed-off-by: Blue Swirl blauwirbel@gmail.com
Modified: trunk/openbios-devel/libc/string.c
Modified: trunk/openbios-devel/libc/string.c ============================================================================== --- trunk/openbios-devel/libc/string.c Fri Apr 2 16:17:45 2010 (r730) +++ trunk/openbios-devel/libc/string.c Fri Apr 2 16:25:37 2010 (r731) @@ -515,7 +515,7 @@ int strncasecmp( const char *cs, const char *ct, size_t count ) { - register signed char __res; + register signed char __res = 0;
while (count--) { char ch1 = toupper(*cs), ch2 = toupper(*ct);