But or not I think setting a variable to a default is a good thing.
I haven't done a proper survey, but I'd wager if we did, we'd find hundreds if not thousands of uninitialized variables in Geany and GP's code.
there is nothing to tell cppcheck that argument 2 is an out
If it did proper analysis (ie. look into callee) it would see it's passed to memcpy
and fully written.
In any case, I'm fine with this PR if it shuts up cppcheck
; this isn't performance critical in anyway, and it doesn't affect readability.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.