curl_trc: store callback info in a uint8, not a bool

The state is no longer just a bool so make sure to use a proper uint8_t
so that it gets restored properly.

Follow-up to a6af50c484

Closes #22199
This commit is contained in:
Daniel Stenberg 2026-06-26 23:01:26 +02:00
parent 334164cd80
commit 996696621f
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -51,7 +51,7 @@ static void trc_write(struct Curl_easy *data, curl_infotype type,
{
if(data->set.verbose) {
if(data->set.fdebug) {
bool inCallback = Curl_is_in_callback(data);
uint8_t inCallback = Curl_is_in_callback(data);
Curl_set_in_callback(data, TRUE);
(void)(*data->set.fdebug)(data, type, CURL_UNCONST(ptr), size,
data->set.debugdata);
@ -133,7 +133,7 @@ void Curl_debug(struct Curl_easy *data, curl_infotype type,
char buf[TRC_LINE_MAX];
size_t len;
if(data->set.fdebug) {
bool inCallback = Curl_is_in_callback(data);
uint8_t inCallback = Curl_is_in_callback(data);
if(CURL_TRC_IDS(data) && (size < TRC_LINE_MAX)) {
len = trc_print_ids(data, buf, TRC_LINE_MAX);