Commit e6bcbb35 authored by Guillaume Quintard's avatar Guillaume Quintard Committed by Pål Hermunn Johansen

Check malloc return

parent a4b49031
...@@ -204,6 +204,7 @@ VCLI_ReadResult(int fd, unsigned *status, char **ptr, double tmo) ...@@ -204,6 +204,7 @@ VCLI_ReadResult(int fd, unsigned *status, char **ptr, double tmo)
*status = u; *status = u;
p = malloc(v + 1L); p = malloc(v + 1L);
AN(p);
if (p == NULL) if (p == NULL)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment