Commit 0573fa42 by Kaz Kojima Committed by François-Xavier Coudert

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
parent fa951694
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
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment