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;