[PATCH v4l-utils] keytable: fix compilation warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <sean@xxxxxxxx>
---
 utils/keytable/keytable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 6fc22358..e15440de 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -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;
 			}
-- 
2.17.2




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux