diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-05-05 03:36:05 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-05-05 03:36:05 +0000 |
commit | 2af42951975f332e0b9504dd38a6902d10526036 (patch) | |
tree | 5cf342737cd1c687a4f40a5de36fbf0d5c4a2be1 | |
parent | c69547d9573bcbeaaa191f73f76b420184491c4a (diff) | |
download | krb5-2af42951975f332e0b9504dd38a6902d10526036.zip krb5-2af42951975f332e0b9504dd38a6902d10526036.tar.gz krb5-2af42951975f332e0b9504dd38a6902d10526036.tar.bz2 |
* 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
-rw-r--r-- | src/util/support/plugins.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/support/plugins.c b/src/util/support/plugins.c index 43c319c..41afbf1 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++) { |