Merge branch 'new_alloca0_newa0' into 'main'

galloca: Add new API g_alloca0 and g_newa0

Closes #475

See merge request GNOME/glib!2367
This commit is contained in:
Philip Withnall
2021-11-26 12:38:46 +00:00
8 changed files with 40 additions and 15 deletions

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); \