From 109c10bdfd0e46f1a537d2766f3731164d94f28c Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 17 Apr 2009 13:16:54 +0000 Subject: [PATCH] Don't shadow a global variable. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@522 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/dh.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libssh/dh.c b/libssh/dh.c index e1e55056..ccfc6cdc 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 */