aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/io.c
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2006-10-16 21:22:04 +0900
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2006-10-16 12:22:04 +0000
commit0573fa421a606a6c76468c8bcd813e02f71283d1 (patch)
tree71ff954b3da9837e204638abf9d0b8dd9d0a94ae /gcc/fortran/io.c
parentfa9516946c7076c902f1fd8e96add1a37d83f8b4 (diff)
downloadgcc-0573fa421a606a6c76468c8bcd813e02f71283d1.zip
gcc-0573fa421a606a6c76468c8bcd813e02f71283d1.tar.gz
gcc-0573fa421a606a6c76468c8bcd813e02f71283d1.tar.bz2
io.c (gfc_match_close): Ensure that status is terminated by a NULL element.
* io.c (gfc_match_close): Ensure that status is terminated by a NULL element. From-SVN: r117785
Diffstat (limited to 'gcc/fortran/io.c')
-rw-r--r--gcc/fortran/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c
index b0dfa8f..d489769 100644
--- a/gcc/fortran/io.c
+++ b/gcc/fortran/io.c
@@ -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,