Skip to content

Commit

Permalink
emu_test: check for emu file name
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
  • Loading branch information
lumag committed Nov 10, 2016
1 parent 3ffe4e2 commit 7b87660
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/emu_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ int main(int argc, char **argv)

if (argc == 1) {
fname = openemv_config_get_str("scard.emu.file", NULL);
if (!fname) {
fprintf(stderr, "specify emu file\n");
return 1;
}
f = fopen(fname, "r");
} else if (!strcmp(argv[1], "-")) {
fname = "<stdin>";
Expand Down

0 comments on commit 7b87660

Please sign in to comment.