libnm: avoid "-Wmissing-braces" warning for intializing NMUuid

This commit is contained in:
Thomas Haller 2019-02-08 13:34:37 +01:00
parent fcb7001302
commit 814bcf5575
2 changed files with 2 additions and 2 deletions

View file

@ -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 *) */

View file

@ -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);