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 <p...@nwl.cc>
---
 tc/tc_util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.13.1

Reply via email to