From e7390eec2e49ac9d5bf459e26dcf905aa74c2e07 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Thu, 30 Sep 2010 16:02:35 +0000 Subject: * s390-mkopc.c (main): Exit with error 1 if sscanf fails to parse all 6 parameters. --- opcodes/s390-mkopc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'opcodes/s390-mkopc.c') diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c index d4cf3c999d8..b3f13ab5368 100644 --- a/opcodes/s390-mkopc.c +++ b/opcodes/s390-mkopc.c @@ -393,7 +393,10 @@ main (void) insertExpandedMnemonic (opcode, mnemonic, format, min_cpu, mode_bits); } else - fprintf (stderr, "Couldn't scan line %s\n", currentLine); + { + fprintf (stderr, "Couldn't scan line %s\n", currentLine); + exit (1); + } } dumpTable (); -- cgit v1.2.1