Skip to content

Commit 04b7094

Browse files
committed
BUG/MINOR: debug: fixed incorrectly defined 'return' statement
DBG_RETURN_CPTR() is used in a function that does not have DBG_FUNC(), which causes the debug indent level to be calculated incorrectly for that thread. The standard 'return' C statement should be used in this function.
1 parent 9c23c18 commit 04b7094

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/.build-counter

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2491
1+
2493

src/curl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static const char *mir_curl_get_http_version(long version)
125125
if (http_version[i].value == version)
126126
break;
127127

128-
DBG_RETURN_CPTR(http_version[i].str);
128+
return http_version[i].str;
129129
}
130130

131131

0 commit comments

Comments
 (0)