Commit 814bcf55 authored by Thomas Haller's avatar Thomas Haller

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

parent fcb70013
......@@ -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);
......
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