baskerville / bspwm

A tiling window manager based on binary space partitioning
BSD 2-Clause "Simplified" License
7.6k stars 420 forks source link

Remove non-needed Zero initializer #1404

Closed Connor-GH closed 1 year ago

Connor-GH commented 1 year ago

This Zero initializer is not needed here. simply initializing it to its needed value will produce slightly better assembly code. asprintf is only ever called twice (at the time of writing) but probably gets called often, so the more efficient the code can be, the better.

Connor-GH commented 1 year ago

It's more of a stylistic choice than anything because anything over -O0 may try to optimize it out anyways and take the direct approach that I did, but at the very least, this very marginally reduces source code size.