I propose to improve the change description considerably.Calloc returns zeroed-out memory.Replace malloc with calloc and add memory allocating checkmemset(…, 0, …) call by calloc()?
Can the commit message become nicer anyhow?Which is exactly what Zhu has done?of comm_str before used.* Add also a null pointer check for the detection of a memory allocation failure.
…
I imagine that a returned null pointer can eventually be sufficient already.* How do you think about to omit the statement “fprintf(stderr, "Out of memory\n");”?Why?
Would you get helpful background information from the variable “errno”?
Regards,
Markus