OSDN Git Service

2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Dec 2005 06:59:35 +0000 (06:59 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Dec 2005 06:59:35 +0000 (06:59 +0000)
PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Allow comma to return a
null value (default).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109099 138bc75d-0d04-0410-961f-82ee72b054a4

libgfortran/ChangeLog
libgfortran/io/list_read.c

index 02d38d9..65be7e7 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-28  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+       PR libgfortran/25419
+       * io/list_read.c (list_formatted_read_scalar): Allow comma to return a
+       null value (default).
+
 2005-12-21  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
        PR libgfortran/25307
index 9784403..b11f6a5 100644 (file)
@@ -1353,10 +1353,7 @@ list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p, int kind,
        {                       /* Found a null value.  */
          eat_separator (dtp);
          dtp->u.p.repeat_count = 0;
-         if (dtp->u.p.at_eol)
-           finish_separator (dtp);
-          else
-           goto cleanup;
+         goto cleanup;
        }
 
     }