[ovs-dev] [PATCH ovn] pinctrl.c: Fix maybe-uninitialized warnings.
blp at ovn.org
Thu Oct 31 20:08:59 UTC 2019
On Thu, Oct 31, 2019 at 12:11:39PM -0700, Han Zhou wrote:
> Thanks for review. Yes, it seems to be only a problem with old GCC. I see
> all the other places in the repo that use strtok_r() are with the saveptr
> parameter initialized to NULL before use.
Yes, that's exactly because GCC tends to complain otherwise.
Initializing saveptr is the right thing to do.
More information about the dev