diff simtool/pbdump.c @ 105:b1bf0ec6fff5

fc-simtool: pb-dump: first round of bugfixes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 25 Jan 2021 05:59:33 +0000
parents a60645b75a57
children 66f04193a906
line wrap: on
line diff
--- a/simtool/pbdump.c	Mon Jan 25 05:55:40 2021 +0000
+++ b/simtool/pbdump.c	Mon Jan 25 05:59:33 2021 +0000
@@ -114,6 +114,8 @@
 	unsigned recno;
 
 	rc = phonebook_op_common(argv[1]);
+	if (rc < 0)
+		return(rc);
 	if (argv[2]) {
 		outf = fopen(argv[2], "w");
 		if (!outf) {