Skip to content

Commit e400a89

Browse files
committed
getredirect.c: fix variable name
Reported-by: Bernard Spil
1 parent 06bf874 commit e400a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/getredirect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int main(void)
4848
else {
4949
res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code);
5050
if((res == CURLE_OK) &&
51-
((code / 100) != 3)) {
51+
((response_code / 100) != 3)) {
5252
/* a redirect implies a 3xx response code */
5353
fprintf(stderr, "Not a redirect.\n");
5454
}

0 commit comments

Comments
 (0)