- fixed memory corruption on card initialization

- fixed compilation warning


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@340 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-10-26 13:47:23 +00:00
parent 1b34e5e66b
commit a233d19691
3 changed files with 8 additions and 8 deletions

View File

@@ -1814,9 +1814,6 @@ main (int argc, char **argv)
return 1;
}
if (verbose)
fprintf (stderr, "serial=\"%s\"\n", serial);
if (chdir (gadgetfs) < 0) {
fprintf (stderr, "Error changing directory to %s\n", gadgetfs);
return 1;
@@ -1839,6 +1836,9 @@ main (int argc, char **argv)
}
}
if (verbose)
fprintf (stderr, "serial=\"%s\"\n", doserial ? doserial : serial);
if (doiintf) {
for (i=0; i<sizeof(stringtab)/sizeof(struct usb_string); i++) {
if (stringtab[i].id == STRINGID_INTERFACE) {