cli: fix warning in parse_output_fields() about strict-overflow

gcc warns:

    make[4]: Entering directory `./NetworkManager/cli/src'
      CC       utils.o
    utils.c: In function ‘parse_output_fields’:
    utils.c:707:7: error: assuming signed overflow does not occur when simplifying conditional to constant [-Werror=strict-overflow]
        if (found) {
           ^

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-07-27 02:49:40 +02:00
parent b835111129
commit ef24273104

View file

@ -700,9 +700,9 @@ parse_output_fields (const char *fields_str,
break;
}
}
if (found)
break;
}
if (found)
break;
}
if (found) {
/* Add index to array, and field name (or NULL) to group_fields array */