From: Daniel Stenberg Date: Wed, 27 Jan 2016 08:35:55 +0000 (+0100) Subject: getredirect.c: fix variable name X-Git-Tag: curl-7_47_1~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e400a89b184d31da3ac0c5a47dce795e222c33eb;p=curl getredirect.c: fix variable name Reported-by: Bernard Spil --- diff --git a/docs/examples/getredirect.c b/docs/examples/getredirect.c index 23d34834d..acd68cce0 100644 --- a/docs/examples/getredirect.c +++ b/docs/examples/getredirect.c @@ -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"); }