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:
parent
dd30eb1905
commit
a7596cc72b
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue