fix breakage in nl_langinfo from previous commit
authorRich Felker <dalias@aerifal.cx>
Wed, 9 Sep 2015 06:04:42 +0000 (06:04 +0000)
committerRich Felker <dalias@aerifal.cx>
Wed, 9 Sep 2015 06:04:42 +0000 (06:04 +0000)
src/locale/langinfo.c

index 69693fffe5945ae47bb885170a68bd6dd1d8a749..a1ada246ba35dee556e535d5b990c492febe636f 100644 (file)
@@ -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: