aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-08-02 13:36:54 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-08-02 13:36:54 +0000
commit4e7b46d8e2d0b55aa108a63872a830b2ba16f77b (patch)
tree4df05bcfa752cc731ffb8ed71ff30e198c6b43f8 /lib/libc
parent5fc5c0cd3b6fa4ae519ed623b0e692b24099e21c (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/setlocale.c b/lib/libc/locale/setlocale.c
index 9b80941dbbdce..28df1c02de662 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++;