Skip to content

Commit

Permalink
src/cprof_encode_text.c: fix wrong pointer assignment
Browse files Browse the repository at this point in the history
The wrong struct types were used. Typo?

Signed-off-by: Thomas Devoogdt <[email protected]>
  • Loading branch information
ThomasDevoogdt committed Dec 15, 2024
1 parent be433a8 commit 4201714
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cprof_encode_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4201714

Please sign in to comment.