Commit aa9e908c authored by Lubomir Rintel's avatar Lubomir Rintel 🥕 Committed by Thomas Haller

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: b0aaff86
(cherry picked from commit 20328ead)
parent 105d8a24
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment