changeset 13:7c26eac6ab00

simtool/main.c: fix reader name and ATR display logic
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 14 Mar 2021 07:22:13 +0000
parents 2260fbd28b2a
children b7ee2e85686b
files simtool/main.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/simtool/main.c	Sun Mar 14 07:17:26 2021 +0000
+++ b/simtool/main.c	Sun Mar 14 07:22:13 2021 +0000
@@ -22,9 +22,9 @@
 		else
 			good_exit();
 	}
-	if (be_reader_name)
+	if (be_reader_name[0])
 		printf("Card reader name: %s\n", be_reader_name);
-	if (be_atr_string)
+	if (be_atr_string[0])
 		printf("ATR: %s\n", be_atr_string);
 	for (;;) {
 		if (isatty(0)) {