keytable: fix compilation warning
PATCH 1/1 keytable: fix compilation warning
keytable.c: In function ‘parse_opt’:
keytable.c:835:7: warning: ‘param’ may be used uninitialized in this function [-Wuninitialized]
Signed-off-by Sean Young <[email protected]>
--- utils/keytable/keytable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
utils/keytable/keytable.c +1 -1
@@ -832,7 +832,7 @@ static error_t parse_opt(int k, char *arg, struct argp_state *state) do { struct bpf_parameter *param; - if (!param) { + if (!p) { argp_error(state, _("Missing parameter name: %s"), arg); break; }
Signature · 1 line
2.17.2
Quoted 4 lines · Sean Young
keytable.c: In function ‘parse_opt’:
keytable.c:835:7: warning: ‘param’ may be used uninitialized in this function [-Wuninitialized]Signed-off-by Sean Young <[email protected]>
Acked-by Sakari Ailus <[email protected]>
Signature · 2 lines
Sakari Ailus e-mail: [email protected]