From 2af42951975f332e0b9504dd38a6902d10526036 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 5 May 2006 03:36:05 +0000 Subject: [PATCH] * plugins.c (krb5int_get_plugin_filenames): Avoid shadowing local variable names git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17980 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/support/plugins.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index 43c319cde..41afbf1ff 100644 --- a/src/util/support/plugins.c +++ b/src/util/support/plugins.c @@ -360,7 +360,7 @@ krb5int_get_plugin_filenames (const char * const *filebases, char ***filenames) const char *fileexts[] = FILEEXTS; char **tempnames = NULL; int i; - + if (!err) { size_t count = 0; for (i = 0; filebases[i] != NULL; i++, count++); @@ -368,9 +368,9 @@ krb5int_get_plugin_filenames (const char * const *filebases, char ***filenames) tempnames = calloc (count, sizeof (char *)); if (tempnames == NULL) { err = errno; } } - + if (!err) { - int i,j; + int j; for (i = 0; !err && (filebases[i] != NULL); i++) { size_t baselen = strlen (filebases[i]); for (j = 0; !err && (fileexts[j] != NULL); j++) { -- 2.26.2