From 20ee75229f68f3d73004a5432b90edeffb8d281e Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 28 Mar 2023 16:04:31 -0700 Subject: [PATCH] Fix one more place Signed-off-by: Ralph Castain (cherry picked from commit af0b16cf63c22321784110e6fc9c04e0867d8459) --- src/hwloc/hwloc_base_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hwloc/hwloc_base_util.c b/src/hwloc/hwloc_base_util.c index c0317d341d..f2233f5a3f 100644 --- a/src/hwloc/hwloc_base_util.c +++ b/src/hwloc/hwloc_base_util.c @@ -1255,10 +1255,10 @@ int hwloc_bitmap_list_snprintf_exp(char *__hwloc_restrict buf, size_t buflen, char *type) { int ret = 0; + char *tmp = buf; #if HWLOC_API_VERSION >= 0x20000 int prev = -1; ssize_t size = buflen; - char *tmp = buf; int res; /* mark the end in case we do nothing later */