re PR fortran/58226 (negative subscript pos at fortran/options.c:1205)

2013-10-09  Tobias Burnus  <burnus@net-b.de>

        PR fortran/58226
        * options.c (gfc_get_option_string): Handle zero arg case.

From-SVN: r203394
This commit is contained in:
Tobias Burnus 2013-10-10 21:32:22 +02:00 committed by Tobias Burnus
parent b591a8b78c
commit 58b2a35853
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2013-10-10 Tobias Burnus <burnus@net-b.de>
PR fortran/58226
* options.c (gfc_get_option_string): Handle zero arg case.
2013-10-02 Tobias Burnus <burnus@net-b.de>
PR fortran/58593

View file

@ -1166,6 +1166,10 @@ gfc_get_option_string (void)
size_t len, pos;
char *result;
/* Allocate and return a one-character string with '\0'. */
if (!save_decoded_options_count)
return XCNEWVEC (char, 1);
/* Determine required string length. */
len = 0;