gsocket: Use new g_alloca0() function

Replace `g_alloca()` and `memset()` with `g_alloca0()`
This commit is contained in:
Nishal Kulkarni 2021-11-25 16:21:30 +05:30 committed by Philip Withnall
parent 1529c2ca4d
commit 48d0d9f76b

View File

@ -4570,8 +4570,7 @@ G_STMT_START { \
_msg->msg_control = NULL; \
else \
{ \
_msg->msg_control = g_alloca (_msg->msg_controllen); \
memset (_msg->msg_control, '\0', _msg->msg_controllen); \
_msg->msg_control = g_alloca0 (_msg->msg_controllen); \
} \
\
cmsg = CMSG_FIRSTHDR (_msg); \