mirror of
https://github.com/curl/curl.git
synced 2026-08-06 13:16:14 +03:00
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:
parent
334164cd80
commit
996696621f
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue