Improve/standardize some malloc/realloc return val checks.

This commit is contained in:
Jon Siwek 2014-04-29 15:26:19 -05:00
parent 4b059ea15a
commit d7d5497436
5 changed files with 17 additions and 7 deletions

View file

@ -24,7 +24,7 @@ BasicThread::BasicThread()
pthread = 0;
buf_len = STD_FMT_BUF_LEN;
buf = (char*) malloc(buf_len);
buf = (char*) safe_malloc(buf_len);
strerr_buffer = 0;