fix bogus lazy allocation in ctermid and missing malloc failure check
[musl] / src / stdlib / labs.c
1 long labs(long a)
2 {
3         return a>0 ? a : -a;
4 }