Browse Source

fix breakage in nl_langinfo from previous commit

Rich Felker 9 years ago
parent
commit
58f6259dff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/locale/langinfo.c

+ 1 - 1
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: