Skip to content

Commit

Permalink
emptyview: initialising arrays to 0 is redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkeby authored and UtkarshVerma committed Feb 19, 2023
1 parent 5e72ba6 commit c682388
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1606,9 +1606,7 @@ createmon(void)
#endif // MONITOR_RULES_PATCH

m = ecalloc(1, sizeof(Monitor));
#if EMPTYVIEW_PATCH
m->tagset[0] = m->tagset[1] = 0;
#else
#if !EMPTYVIEW_PATCH
m->tagset[0] = m->tagset[1] = 1;
#endif // EMPTYVIEW_PATCH
m->mfact = mfact;
Expand Down

0 comments on commit c682388

Please sign in to comment.