mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
gsocket: Use new g_alloca0() function
Replace `g_alloca()` and `memset()` with `g_alloca0()`
This commit is contained in:
parent
1529c2ca4d
commit
48d0d9f76b
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user