Message ID | 20171115140131.15397-3-phil@nwl.cc |
---|---|
State | Accepted, archived |
Delegated to: | stephen hemminger |
Headers | show |
Series | Review recent changes in tc_util.c | expand |
diff --git a/tc/tc_util.c b/tc/tc_util.c index b01362533cd56..55cdec5dfbe0a 100644 --- a/tc/tc_util.c +++ b/tc/tc_util.c @@ -573,7 +573,7 @@ static int parse_action_control_slash_spaces(int *argc_p, char ***argv_p, { int argc = *argc_p; char **argv = *argv_p; - int result1, result2; + int result1 = -1, result2; int *result_p = &result1; int ok = 0; int ret;
GCC version 7.2.1 complains that 'result1' may be used uninitialized in parse_action_control_slash_spaces(). This should not be possible in practice, so the actual value 'result1' is initialized with does not matter. Signed-off-by: Phil Sutter <phil@nwl.cc> --- tc/tc_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)