mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Improve/standardize some malloc/realloc return val checks.
This commit is contained in:
parent
4b059ea15a
commit
d7d5497436
5 changed files with 17 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue