You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a potentially uninit variable here:
../src/mctp-client.c: In function ‘main’:
../src/mctp-client.c:212:14: warning: ‘valid_parse’ may be used uninitialized [-Wmaybe-uninitialized]
212 | bool valid_parse, valid_eid, valid_type;
| ^~~~~~~~~~~
The valid_parse variable is only initialised in the argument iterator,
so checking outside of this loop may miss cases where a subsequent
argument resets it.
Instead, error-out in the same iteration as an invalid parse.
Signed-off-by: Jeremy Kerr <[email protected]>
0 commit comments