mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-23 00:30:51 +02:00
libnm-core: fix build warning
libnm-core/nm-keyfile.c:679:32: error: 'key_type' may be used uninitialized in this function [-Werror=maybe-uninitialized]
build_list[build_list_len++] = (BuildListData) {
^
This commit is contained in:
parent
899220485e
commit
e7e5f4a2d6
1 changed files with 1 additions and 1 deletions
|
|
@ -643,7 +643,7 @@ _build_list_create (GKeyFile *keyfile,
|
|||
for (i_keys = 0; i_keys < n_keys; i_keys++) {
|
||||
const char *s_key = keys[i_keys];
|
||||
gint32 key_idx;
|
||||
gint8 key_type;
|
||||
gint8 key_type = 0;
|
||||
|
||||
switch (build_list_type) {
|
||||
case BUILD_LIST_TYPE_ROUTES:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue