The long issue is explained here: https://bugs.launchpad.net/mixxx/+bug/1094143 and scheduled for 1.12 (not an issue of this patch, isn't it? :-))

> it's safe because if buf_size is zero it returns without processing. I'll use parenthesis to make it more clear.

Ah yes thank you, I was confused by the value order.