aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--brightness.c2
-rw-r--r--input-switch.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/brightness.c b/brightness.c
index 4bf63a7..29172f6 100644
--- a/brightness.c
+++ b/brightness.c
@@ -45,7 +45,7 @@ xstrtol (const char *s, long *out)
static bool
set_brightness (int fd, long diff, struct error **e)
{
- struct vcp_feature_readout readout;
+ struct vcp_feature_readout readout = {};
if (!vcp_get_feature (fd, VCP_BRIGHTNESS, &readout, e))
return false;
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)