* s390-mkopc.c (main): Exit with error 1 if sscanf fails
authorPierre Muller <muller@sourceware.org>
Thu, 30 Sep 2010 16:02:35 +0000 (16:02 +0000)
committerPierre Muller <muller@sourceware.org>
Thu, 30 Sep 2010 16:02:35 +0000 (16:02 +0000)
to parse all 6 parameters.

opcodes/ChangeLog
opcodes/s390-mkopc.c

index 379a2986cf4419d67c4f2b8d264ffe7435efd695..934247be4e3f2a24cf25bc271231ed889b2f9fef 100644 (file)
@@ -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.
index d4cf3c999d8cde6be895168c5dacff36db319333..b3f13ab5368590a559b705a4814bf8e951122d1b 100644 (file)
@@ -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 ();
This page took 0.025113 seconds and 4 git commands to generate.