don't complain about missing "--slot" parameter, when you don't

need it (if you only "--list-slots").


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4122 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aj 2010-03-16 14:59:20 +00:00
parent 5972022ffc
commit 84934adab9
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ int main(int argc, char * argv[])
opt_slot = slot;
}
if (opt_slot == NO_SLOT) {
if ((opt_slot == NO_SLOT) && (action_count > do_list_slots)) {
fprintf(stderr, "You must specify a slot ID\n");
err = 1;
goto end;