diff options
author | Pierre Muller <muller@sourceware.org> | 2010-09-30 16:02:35 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-09-30 16:02:35 +0000 |
commit | e7390eec2e49ac9d5bf459e26dcf905aa74c2e07 (patch) | |
tree | 1d58d23c91816467ef8ef8e4edcf693ab61bd6af /opcodes/s390-mkopc.c | |
parent | d2ae9c847a107449b04d81f50ba6c6ba7e81ad2a (diff) | |
download | gdb-e7390eec2e49ac9d5bf459e26dcf905aa74c2e07.zip gdb-e7390eec2e49ac9d5bf459e26dcf905aa74c2e07.tar.gz gdb-e7390eec2e49ac9d5bf459e26dcf905aa74c2e07.tar.bz2 |
* s390-mkopc.c (main): Exit with error 1 if sscanf fails
to parse all 6 parameters.
Diffstat (limited to 'opcodes/s390-mkopc.c')
-rw-r--r-- | opcodes/s390-mkopc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/opcodes/s390-mkopc.c b/opcodes/s390-mkopc.c index d4cf3c9..b3f13ab 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 (); |