fix bogus lazy allocation in ctermid and missing malloc failure check
[musl] / lib /
2011-02-17 Rich Felkernew solution for empty lib dir (old one had some problems)