[glib: 7/8] gsocket: Use new g_alloca0() function
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 7/8] gsocket: Use new g_alloca0() function
- Date: Fri, 26 Nov 2021 12:38:47 +0000 (UTC)
commit 48d0d9f76b5def8100add1d9e589fd6f3686d4bb
Author: Nishal Kulkarni <nishalkulkarni gmail com>
Date: Thu Nov 25 16:21:30 2021 +0530
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); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]