aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/getredirect.c2
1 files changed, 1 insertions, 1 deletions
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");
}