aboutsummaryrefslogtreecommitdiff
path: root/docs/examples
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-01-27 09:35:55 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-01-27 09:35:55 +0100
commite400a89b184d31da3ac0c5a47dce795e222c33eb (patch)
tree22c7087c2e1c1127db1f88f2bad80421fe4064dc /docs/examples
parent06bf874bbca0a5c600b210b5db920eff9f95f0d0 (diff)
getredirect.c: fix variable name
Reported-by: Bernard Spil
Diffstat (limited to 'docs/examples')
-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");
}