| Author | |
| Committer | |
| Tree | 77f4dba221c6aff2dbe2171075254383990263b8 |
CID 503240: NULL_RETURNS | |
diff --git a/src/web/w-comms.c b/src/web/w-comms.c index f198fc6..acf5a42 100644 --- a/src/web/w-comms.c +++ b/src/web/w-comms.c @@ -66,6 +66,10 @@ int saiw_task_cancel(struct vhd *vhd, const char *task_uuid) { sai_cancel_t *can = malloc(sizeof(*can)); + + if (!can) + return 1; + memset(can, 0, sizeof(*can));