Explorar o código

fix breakage in nl_langinfo from previous commit

Rich Felker %!s(int64=9) %!d(string=hai) anos
pai
achega
58f6259dff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: