fx2lafw: fix possible use of uninitialized variable (gcc-4.9 warning fix)
hardware/fx2lafw/protocol.c: In function 'fx2lafw_command_start_acquisition': hardware/fx2lafw/protocol.c:113:7: warning: 'cmd.flags' may be used uninitialized in this function [-Wmaybe-uninitialized] (cmd.flags & CMD_START_FLAGS_CLK_48MHZ) ? "48" : "30"); ^
This commit is contained in:
parent
38d3246497
commit
eb28f1b7b2
|
@ -87,7 +87,7 @@ static int command_get_revid_version(libusb_device_handle *devhdl,
|
||||||
SR_PRIV int fx2lafw_command_start_acquisition(libusb_device_handle *devhdl,
|
SR_PRIV int fx2lafw_command_start_acquisition(libusb_device_handle *devhdl,
|
||||||
uint64_t samplerate, gboolean samplewide)
|
uint64_t samplerate, gboolean samplewide)
|
||||||
{
|
{
|
||||||
struct cmd_start_acquisition cmd;
|
struct cmd_start_acquisition cmd = { 0 };
|
||||||
int delay = 0, ret;
|
int delay = 0, ret;
|
||||||
|
|
||||||
/* Compute the sample rate. */
|
/* Compute the sample rate. */
|
||||||
|
|
Loading…
Reference in New Issue