about summary refs log tree commit diff
path: root/src/locale/langinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/langinfo.c')
-rw-r--r--src/locale/langinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/langinfo.c b/src/locale/langinfo.c
index 69693fff..a1ada246 100644
--- a/src/locale/langinfo.c
+++ b/src/locale/langinfo.c
@@ -33,7 +33,7 @@ char *__nl_langinfo_l(nl_item item, locale_t loc)
 	int idx = item & 65535;
 	const char *str;
 
-	if (item == CODESET) "UTF-8";
+	if (item == CODESET) return "UTF-8";
 	
 	switch (cat) {
 	case LC_NUMERIC: