summaryrefslogtreecommitdiff
path: root/src/netwm.c
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2020-08-08 18:17:10 +0200
committerOlivier Fourdan <fourdan@xfce.org>2020-08-08 18:17:10 +0200
commitb510bdbab41371cc64ef6834221b6038e9c7a5c4 (patch)
treeeaa7e27eac9feb8da837eaffa8a1d2fe593a1d71 /src/netwm.c
parent07c948127ccf56ca4e305486e3a3fccee02c40ee (diff)
downloadxfwm4-b510bdbab41371cc64ef6834221b6038e9c7a5c4.tar.gz
cleanup: prefer zero initialized memory allocation
Prefer using memory allocation functions which initialize the memory with 0's to be on the safe side. No functional change. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Diffstat (limited to 'src/netwm.c')
-rw-r--r--src/netwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netwm.c b/src/netwm.c
index 593b3641c..2b2297143 100644
--- a/src/netwm.c
+++ b/src/netwm.c
@@ -972,7 +972,7 @@ clientSetNetClientList (ScreenInfo * screen_info, Atom a, GList * list)
return;
}
- listw = g_new (Window, size + 1);
+ listw = g_new0 (Window, size + 1);
if (listw)
{
TRACE ("%i windows in list for %i clients", size, screen_info->client_count);