From 48d0d9f76b5def8100add1d9e589fd6f3686d4bb Mon Sep 17 00:00:00 2001 From: Nishal Kulkarni Date: Thu, 25 Nov 2021 16:21:30 +0530 Subject: [PATCH] gsocket: Use new g_alloca0() function Replace `g_alloca()` and `memset()` with `g_alloca0()` --- gio/gsocket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gio/gsocket.c b/gio/gsocket.c index 43eb98692..2569b76f0 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -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); \