OSDN Git Service

* io.c (gfc_match_close): Ensure that status is terminated by
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Oct 2006 12:22:04 +0000 (12:22 +0000)
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 16 Oct 2006 12:22:04 +0000 (12:22 +0000)
a NULL element.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117785 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/io.c

index 6d7e4c4..a86d161 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
+
+       * io.c (gfc_match_close): Ensure that status is terminated by
+       a NULL element.
+
 2006-10-16  Tobias Burnus <burnus@net-b.de>
 
        * trans-stmt.c: Fix a typo
index b0dfa8f..d489769 100644 (file)
@@ -1745,7 +1745,7 @@ gfc_match_close (void)
   /* Checks on the STATUS specifier.  */
   if (close->status && close->status->expr_type == EXPR_CONSTANT)
     {
-      static const char * status[] = { "KEEP", "DELETE" };
+      static const char * status[] = { "KEEP", "DELETE", NULL };
 
       if (!compare_to_allowed_values ("STATUS", status, NULL, NULL,
                                      close->status->value.character.string,