From f22283ae89aa19457558d6028db86fabdb63a4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 9 Feb 2017 20:20:32 +0100 Subject: Fix a useless compiler warning --- input-switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input-switch.c') diff --git a/input-switch.c b/input-switch.c index 352c71c..96f984a 100644 --- a/input-switch.c +++ b/input-switch.c @@ -34,7 +34,7 @@ static bool set_input_source (int fd, int input, struct error **e) { - struct vcp_feature_readout readout; + struct vcp_feature_readout readout = {}; if (!vcp_get_feature (fd, VCP_INPUT_SOURCE, &readout, e)) return false; if (input < 0 || input > readout.max) -- cgit v1.2.3