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:
parent
b591a8b78c
commit
58b2a35853
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue