mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 08:18:03 +02:00
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:
parent
f541cef958
commit
20328eaddf
1 changed files with 1 additions and 1 deletions
|
|
@ -1300,7 +1300,7 @@ static gboolean
|
||||||
match_data_s390_subchannels_eval (const char *spec_str,
|
match_data_s390_subchannels_eval (const char *spec_str,
|
||||||
MatchDeviceData *match_data)
|
MatchDeviceData *match_data)
|
||||||
{
|
{
|
||||||
guint32 a, b, c;
|
guint32 a = 0, b = 0, c = 0;
|
||||||
|
|
||||||
if (G_UNLIKELY (!match_data->s390_subchannels.is_parsed)) {
|
if (G_UNLIKELY (!match_data->s390_subchannels.is_parsed)) {
|
||||||
match_data->s390_subchannels.is_parsed = TRUE;
|
match_data->s390_subchannels.is_parsed = TRUE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue