From 00c2aa6f664e9ec249fd297fb01309477917d029 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Mon, 16 Jan 2023 14:12:41 -0500 Subject: [PATCH] Build fix: warning: clang warns that uuid_scan may be uninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit clang warns that uuid_scan may be uninitialized. While this can't happen given the function's code flow, silence the warning by initializing uuid_scan. Signed-off-by: Jérémie Galarneau Change-Id: I143131663cde02234c47ec16c74ee9176e49c1cc --- src/common/uuid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/uuid.cpp b/src/common/uuid.cpp index 770d95529..ddf0fb509 100644 --- a/src/common/uuid.cpp +++ b/src/common/uuid.cpp @@ -45,7 +45,7 @@ std::string lttng::utils::uuid_to_str(const lttng_uuid& uuid) int lttng_uuid_from_str(const char *str_in, lttng_uuid& uuid_out) { int ret = 0; - lttng_uuid uuid_scan; + lttng_uuid uuid_scan = {}; if (str_in == nullptr) { ret = -1; -- 2.34.1