From 37bf6432134ca8ea3a2b6a15d035ff4721feb887 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 9 Nov 2016 08:19:58 +0100 Subject: [PATCH] libnm: don't initialize buffer for uuid_unparse_lower() with zeros --- libnm-core/nm-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index 4be430af6b..cfd97149ca 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -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); } - buf = g_malloc0 (37); + buf = g_malloc (37); uuid_unparse_lower (uuid, &buf[0]); return buf;