bspwm icon indicating copy to clipboard operation
bspwm copied to clipboard

Remove non-needed Zero initializer

Open Connor-GH opened this issue 3 years ago • 1 comments

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 avatar Jul 26 '22 07:07 Connor-GH

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.

Connor-GH avatar Jul 26 '22 07:07 Connor-GH