* s390-mkopc.c (main): Exit with error 1 if sscanf fails
to parse all 6 parameters.
This commit is contained in:
parent
d2ae9c847a
commit
e7390eec2e
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-09-30 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* s390-mkopc.c (main): Exit with error 1 if sscanf fails
|
||||
to parse all 6 parameters.
|
||||
|
||||
2010-09-28 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* s390-mkopc.c (main): Change description array size to 80.
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue