]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
If LIBSSH2DEBUG was defined "i" was undefined
authorJames Housley <jim@thehousleys.net>
Mon, 18 Jun 2007 22:28:40 +0000 (22:28 +0000)
committerJames Housley <jim@thehousleys.net>
Mon, 18 Jun 2007 22:28:40 +0000 (22:28 +0000)
lib/ssh.c

index ff6d4e40addd43d9847e6ad62bcfad4c682076cd..05f101411964c157f5e45fd7a18c8dae4265cabc 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -318,8 +318,8 @@ static CURLcode ssh_statemach_act(struct connectdata *conn)
 
       /* The fingerprint points to static storage (!), don't free() it. */
       infof(data, "Fingerprint: ");
-      for (i = 0; i < 16; i++) {
-        infof(data, "%02X ", (unsigned char) fingerprint[i]);
+      for (rc = 0; rc < 16; rc++) {
+        infof(data, "%02X ", (unsigned char) fingerprint[rc]);
       }
       infof(data, "\n");
 #endif /* CURL_LIBSSH2_DEBUG */