signal: Add siginfo initializer

This patch is to make Coverity happy.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen 2024-07-12 09:45:07 +08:00 committed by archer
parent 037baee4fb
commit 9f36509c0b

View File

@ -124,6 +124,7 @@ int nxsig_notification(pid_t pid, FAR struct sigevent *event,
info.si_pid = rtcb->pid;
info.si_status = OK;
#endif
info.si_user = NULL;
/* Some compilers (e.g., SDCC), do not permit assignment of aggregates.
* Use of memcpy() is overkill; We could just copy the larger of the