On 2024/7/19 11:31, Sandeep Dhavale wrote:
Hi Gao,
Is it a lint issue? Although I think currently userspace malloc
failures is rare, it'd be better to handle them.
Previously I have used scan-build as a static checker. However today,
one of the realloc code blocks, I stumbled upon while going through
code on another performance problem.
Then I just grepped and found another one so I just fixed them in one go.
Okay, thanks for the info.
I update this as since the variable definition would be better
at the beginning of a block...
The edit looks better to me, so feel free to update while applying.
As always, thanks for the review.
Let me apply the patch soon..
Thanks,
Gao Xiang
Thanks,
Sandeep.