diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/setlocale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c index 9b80941..28df1c0 100644 --- a/lib/libc/locale/setlocale.c +++ b/lib/libc/locale/setlocale.c @@ -149,7 +149,7 @@ setlocale(category, locale) return (NULL); /* Hmm, just slashes... */ do { if (i == _LC_LAST) - return(NULL); /* Too many slashes... */ + break; /* Too many slashes... */ len = r - locale > ENCODING_LEN ? ENCODING_LEN : r - locale; (void)strlcpy(new_categories[i], locale, len + 1); i++; |