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>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@731 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2010-04-02 14:25:37 +00:00
parent 85412826ed
commit db3348538a

View File

@@ -515,7 +515,7 @@ strcasecmp( const char *cs, const char *ct )
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);