duplocale: don't crash when called with LC_GLOBAL_LOCALE
authorRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 17:48:57 +0000 (13:48 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 17:48:57 +0000 (13:48 -0400)
commitb3d7d062af63d833b9a984770320534719252b61
tree7ea46d3ccef82c3ed12e37350adb391ec3857f4b
parentf313a1622448de578ab0b11a881f44a02c9082e6
duplocale: don't crash when called with LC_GLOBAL_LOCALE

posix has resolved to add this usage; for now, we just avoid writing
anything to the new locale object since it's not used anyway.
src/locale/duplocale.c