From 48f6fced304bc567bb3cb756a25b7d6ef07b1424 Mon Sep 17 00:00:00 2001 From: Leonardo Alminana Date: Tue, 12 Nov 2024 17:16:57 +0100 Subject: [PATCH] lib: cprofiles: fixed incorrect check Signed-off-by: Leonardo Alminana --- lib/cprofiles/src/cprof_encode_text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cprofiles/src/cprof_encode_text.c b/lib/cprofiles/src/cprof_encode_text.c index 79801f83371..218a72b5b63 100644 --- a/lib/cprofiles/src/cprof_encode_text.c +++ b/lib/cprofiles/src/cprof_encode_text.c @@ -631,9 +631,9 @@ static int encode_int64_t_array( } } - result = cfl_sds_printf(&context->output_buffer, - "%s", - suffix); + sds_result = cfl_sds_printf(&context->output_buffer, + "%s", + suffix); if (sds_result == NULL) { return CPROF_ENCODE_TEXT_ALLOCATION_ERROR;