mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 13:28:02 +02:00
libnm: don't initialize buffer for uuid_unparse_lower() with zeros
This commit is contained in:
parent
fedee13c37
commit
37bf643213
1 changed files with 1 additions and 1 deletions
|
|
@ -2212,7 +2212,7 @@ nm_utils_uuid_generate_from_string (const char *s, gssize slen, int uuid_type, g
|
||||||
g_return_val_if_reached (NULL);
|
g_return_val_if_reached (NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = g_malloc0 (37);
|
buf = g_malloc (37);
|
||||||
uuid_unparse_lower (uuid, &buf[0]);
|
uuid_unparse_lower (uuid, &buf[0]);
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue