summaryrefslogtreecommitdiff
path: root/gcc/fortran/io.c
diff options
context:
space:
mode:
authorfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-16 12:22:04 +0000
committerfxcoudert <fxcoudert@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-16 12:22:04 +0000
commit171810f8ac972587fa6dea27a71d9f2d6950e8ab (patch)
tree71ff954b3da9837e204638abf9d0b8dd9d0a94ae /gcc/fortran/io.c
parentcb8e3560d49e7ffc1ab402411261aa1450e7b468 (diff)
downloadgcc-171810f8ac972587fa6dea27a71d9f2d6950e8ab.tar.gz
* io.c (gfc_match_close): Ensure that status is terminated by
a NULL element. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117785 138bc75d-0d04-0410-961f-82ee72b054a4
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 b0dfa8f0311..d4897694bbd 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,