Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cprof_encode_text: fix wrong pointer assignment #3

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading