core: add missing initializers to match_data_s390_subchannels_eval()

match_device_s390_subchannels_parse() asserts that arguments point to
zeroes.

  1299     static gboolean
  1300     match_data_s390_subchannels_eval (const char *spec_str,
  1301                                       MatchDeviceData *match_data)
  1302     {
  >>>     CID 160923:  Uninitialized variables  (UNINIT)
  >>>     Declaring variable "c" without initializer.
  1303            guint32 a, b, c;

Fixes: b0aaff86b6
This commit is contained in:
Lubomir Rintel 2017-01-25 14:47:34 +01:00 committed by Thomas Haller
parent f541cef958
commit 20328eaddf

View file

@ -1300,7 +1300,7 @@ static gboolean
match_data_s390_subchannels_eval (const char *spec_str,
MatchDeviceData *match_data)
{
guint32 a, b, c;
guint32 a = 0, b = 0, c = 0;
if (G_UNLIKELY (!match_data->s390_subchannels.is_parsed)) {
match_data->s390_subchannels.is_parsed = TRUE;