summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-08-03 17:09:21 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-08-03 17:09:21 +0000
commit2f6754febb77295bdd360e42160db8efbd929d26 (patch)
tree1d565a49369a4698345e3bebf35f3ba93f00a7bb /lib/libc
parentc005cd89e1543daec8145bd0811e108c6a602b77 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/setrunelocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index ec35b6575a68..a42c02086836 100644
--- a/lib/libc/locale/setrunelocale.c
+++ b/lib/libc/locale/setrunelocale.c
@@ -61,7 +61,7 @@ setrunelocale(encoding)
char name[PATH_MAX];
_RuneLocale *rl;
- if (!encoding || strlen(encoding) > ENCODING_LEN ||
+ if (!encoding || !*encoding || strlen(encoding) > ENCODING_LEN ||
(encoding[0] == '.' &&
(encoding[1] == '\0' ||
(encoding[1] == '.' && encoding[2] == '\0'))) ||