Skip to contentSkip to conversation

keytable: fix compilation warning

PATCH In review Sean Young 2 participants 2 messages Nov 7, 2018 Media (V4L/DVB)

lore
Share & tools
lore

Sean Young

author
#0 lore raw

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]

---
 utils/keytable/keytable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/keytable/keytable.c +1 -1
index 6fc22358..e15440de 100644
@@ -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