mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 04:08:01 +02:00
libnm: avoid "-Wmissing-braces" warning for intializing NMUuid
This commit is contained in:
parent
fcb7001302
commit
814bcf5575
2 changed files with 2 additions and 2 deletions
|
|
@ -2892,7 +2892,7 @@ nm_utils_uuid_generate_from_string_bin (NMUuid *uuid, const char *s, gssize slen
|
|||
break;
|
||||
case NM_UTILS_UUID_TYPE_VERSION3:
|
||||
case NM_UTILS_UUID_TYPE_VERSION5: {
|
||||
NMUuid ns_uuid = { 0 };
|
||||
NMUuid ns_uuid = { };
|
||||
|
||||
if (type_args) {
|
||||
/* type_args can be a name space UUID. Interpret it as (char *) */
|
||||
|
|
|
|||
|
|
@ -5889,7 +5889,7 @@ __test_uuid (const char *expected_uuid, const char *str, gssize slen, char *uuid
|
|||
static void
|
||||
test_nm_utils_uuid_generate_from_strings (void)
|
||||
{
|
||||
const NMUuid uuid0 = { 0 };
|
||||
const NMUuid uuid0 = { };
|
||||
|
||||
g_assert_cmpmem (&uuid0, sizeof (uuid0), _uuid ("00000000-0000-0000-0000-000000000000"), 16);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue