diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2017-02-09 20:20:32 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2017-02-09 20:20:32 +0100 |
commit | f22283ae89aa19457558d6028db86fabdb63a4ae (patch) | |
tree | 1372843c5331bfbcaaf493eb214115d38d3ad3cc /input-switch.c | |
parent | 3d855284ec3e03fa2b96166097761074350ab847 (diff) | |
download | desktop-tools-f22283ae89aa19457558d6028db86fabdb63a4ae.tar.gz desktop-tools-f22283ae89aa19457558d6028db86fabdb63a4ae.tar.xz desktop-tools-f22283ae89aa19457558d6028db86fabdb63a4ae.zip |
Fix a useless compiler warning
Diffstat (limited to 'input-switch.c')
-rw-r--r-- | input-switch.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |