Skip to content

Commit

Permalink
Amend compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
estringana committed Nov 8, 2024
1 parent fba7ee0 commit 4b42290
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ext/handlers_http.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ static inline void ddtrace_inject_distributed_headers_config(zend_array *array,
}
}
}
goto injection_finished;
#undef ADD_HEADER
return;
}

if (sampling_priority != DDTRACE_PRIORITY_SAMPLING_UNKNOWN) {
Expand Down Expand Up @@ -249,12 +250,10 @@ static inline void ddtrace_inject_distributed_headers_config(zend_array *array,
ADD_HEADER("b3", "%s", b3_sampling_decision);
}
}
injection_finished:

if (propagated_tags) {
zend_string_release(propagated_tags);
}

#undef ADD_HEADER
}

static inline void ddtrace_inject_distributed_headers(zend_array *array, bool key_value_pairs) {
Expand Down

0 comments on commit 4b42290

Please sign in to comment.