Fix a useless compiler warning

This commit is contained in:
Přemysl Eric Janouch 2017-02-09 20:20:32 +01:00
parent 3d855284ec
commit f22283ae89
Signed by: p
GPG Key ID: B715679E3A361BE6
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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)