mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
getredirect.c: fix variable name
Reported-by: Bernard Spil
This commit is contained in:
parent
06bf874bbc
commit
e400a89b18
@ -48,7 +48,7 @@ int main(void)
|
||||
else {
|
||||
res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code);
|
||||
if((res == CURLE_OK) &&
|
||||
((code / 100) != 3)) {
|
||||
((response_code / 100) != 3)) {
|
||||
/* a redirect implies a 3xx response code */
|
||||
fprintf(stderr, "Not a redirect.\n");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user