From 4201714a9f595ca9b2018e7de713f89be3924575 Mon Sep 17 00:00:00 2001 From: Thomas Devoogdt Date: Sat, 16 Nov 2024 20:55:37 +0100 Subject: [PATCH] src/cprof_encode_text.c: fix wrong pointer assignment The wrong struct types were used. Typo? Signed-off-by: Thomas Devoogdt --- src/cprof_encode_text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cprof_encode_text.c b/src/cprof_encode_text.c index 56d24a6..636c6e6 100644 --- a/src/cprof_encode_text.c +++ b/src/cprof_encode_text.c @@ -1909,7 +1909,7 @@ static int encode_cprof_resource_profiles( struct cprof_resource_profiles *instance) { int result; struct cfl_list *iterator; - struct cprof_scope_profile *scope_profile; + struct cprof_scope_profiles *scope_profiles; result = encode_string(context, CFL_TRUE, @@ -1958,11 +1958,11 @@ static int encode_cprof_resource_profiles( cfl_list_foreach(iterator, &instance->scope_profiles) { - scope_profile = cfl_list_entry( + scope_profiles = cfl_list_entry( iterator, struct cprof_scope_profiles, _head); - result = encode_cprof_scope_profiles(context, scope_profile); + result = encode_cprof_scope_profiles(context, scope_profiles); if (result != CPROF_ENCODE_TEXT_SUCCESS) { return result;