fix uselocale((locale_t)0) not to modify locale
authorTimo Teräs <timo.teras@iki.fi>
Fri, 5 Jun 2015 07:39:42 +0000 (10:39 +0300)
committerRich Felker <dalias@aerifal.cx>
Fri, 5 Jun 2015 15:21:40 +0000 (15:21 +0000)
commit63f4b9f18f3674124d8bcb119739fec85e6da005
tree3dc38e3b004052aed437a311728bf66ee4da628e
parente6f09004af4d3ffc4e4ad5b5d33cf45891c25f25
fix uselocale((locale_t)0) not to modify locale

commit 68630b55c0c7219fe9df70dc28ffbf9efc8021d8 made the new locale to
be assigned unconditonally resulting in crashes later on.
src/locale/uselocale.c