On Mon Jun 5 12:12:41 2023 +0000, Piotr Caban wrote:
There's no leak here. In case !buf we're updating size if it's to small. The code can be changed to:
else if (dir_len >= size)
to make it easier to read.
My apologies for not reading the code closely enough. I like your idea of using `else if` to suppress the warning, and I've pushed a new patch that does exactly that.