Fix a useless compiler warning
This commit is contained in:
parent
3d855284ec
commit
f22283ae89
|
@ -45,7 +45,7 @@ xstrtol (const char *s, long *out)
|
||||||
static bool
|
static bool
|
||||||
set_brightness (int fd, long diff, struct error **e)
|
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))
|
if (!vcp_get_feature (fd, VCP_BRIGHTNESS, &readout, e))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
static bool
|
static bool
|
||||||
set_input_source (int fd, int input, struct error **e)
|
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))
|
if (!vcp_get_feature (fd, VCP_INPUT_SOURCE, &readout, e))
|
||||||
return false;
|
return false;
|
||||||
if (input < 0 || input > readout.max)
|
if (input < 0 || input > readout.max)
|
||||||
|
|
Loading…
Reference in New Issue