Author: Andy Green Date: Sun Apr 19 21:04:38 2026 +0100 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));