PR fortran/58226
* options.c (gfc_get_option_string): Handle zero arg case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203394
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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;