diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-17 13:16:54 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-17 13:16:54 +0000 |
commit | 109c10bdfd0e46f1a537d2766f3731164d94f28c (patch) | |
tree | a629af31ece3d6d9990fc9ae7183add27226e1ec /libssh/dh.c | |
parent | 3216520b4caa54a6269a72b6ba74f57bacd1b32f (diff) | |
download | libssh-109c10bdfd0e46f1a537d2766f3731164d94f28c.tar.gz libssh-109c10bdfd0e46f1a537d2766f3731164d94f28c.tar.xz libssh-109c10bdfd0e46f1a537d2766f3731164d94f28c.zip |
Don't shadow a global variable.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@522 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/dh.c')
-rw-r--r-- | libssh/dh.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libssh/dh.c b/libssh/dh.c index e1e5505..ccfc6cd 100644 --- a/libssh/dh.c +++ b/libssh/dh.c @@ -849,23 +849,23 @@ STRING *ssh_get_pubkey(SSH_SESSION *session){ } static int match(const char *group, const char *object){ - const char *p; + const char *a; const char *z; - p = z = group; + a = z = group; do { - p = strchr(z, ','); - if (p == NULL) { + a = strchr(z, ','); + if (a == NULL) { if (strcmp(z, object) == 0) { return 1; } return 0; } else { - if (strncmp(z, object, p - z) == 0) { + if (strncmp(z, object, a - z) == 0) { return 1; } } - z = p + 1; + z = a + 1; } while(1); /* not reached */ |