Fix compiler warning

opensc-explorer.c: In function 'main':
opensc-explorer.c:1602: warning: declaration of 'argv' shadows a parameter


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5466 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
ludovic.rousseau 2011-05-22 11:35:42 +00:00
parent dd30eb1905
commit a7596cc72b
1 changed files with 2 additions and 2 deletions

View File

@ -1599,10 +1599,10 @@ int main(int argc, char * const argv[])
if (opt_startfile) {
if(*opt_startfile) {
char startpath[1024];
char *argv[] = { startpath };
char *args[] = { startpath };
strncpy(startpath, opt_startfile, sizeof(startpath)-1);
r = do_cd(1, argv);
r = do_cd(1, args);
if (r) {
printf("unable to select file %s: %s\n",
opt_startfile, sc_strerror(r));