diff options
author | Olivier Fourdan <fourdan@xfce.org> | 2020-08-08 18:17:10 +0200 |
---|---|---|
committer | Olivier Fourdan <fourdan@xfce.org> | 2020-08-08 18:17:10 +0200 |
commit | b510bdbab41371cc64ef6834221b6038e9c7a5c4 (patch) | |
tree | eaa7e27eac9feb8da837eaffa8a1d2fe593a1d71 /src/netwm.c | |
parent | 07c948127ccf56ca4e305486e3a3fccee02c40ee (diff) | |
download | xfwm4-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.c | 2 |
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); |