One memset instead of two.

This also fix the strange sizeof.
This commit is contained in:
Clément Bœsch 2011-01-12 19:40:36 +01:00 committed by Martin Duquesnoy
parent b5f24e042f
commit 7ac4bf32c2

View File

@ -443,8 +443,7 @@ mirror(int screen, Bool horizontal)
int pa, imp;
Bool isp = 0;
memset(&nextg[0], 0, sizeof(nextg[0]));
memset(&nextg[1], 0, sizeof(nextg[2]));
memset(nextg, 0, sizeof(nextg));
for(n = 0, c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next), ++n);
CHECK(n);