diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 5b53e2b2541f8bdbff7451e3d551317fb0eec827..774a2b8cbdc78b90cd6da52548836b17a7ad81e1 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
+
+	PR libgfortran/22423
+	* io/transfer.c (read_block): Return NULL instead of nothing.
+	
 2006-05-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
 	PR libgfortran/27575
diff --git a/libgfortran/io/transfer.c b/libgfortran/io/transfer.c
index 054217daa798f3f9dbc78cc7d3227e1b70ae28b3..15d403c5714a13971ab97ebe3c77c62f4cda35e7 100644
--- a/libgfortran/io/transfer.c
+++ b/libgfortran/io/transfer.c
@@ -276,7 +276,7 @@ read_block (st_parameter_dt *dtp, int *length)
 	{
 	  dtp->u.p.current_unit->endfile = AT_ENDFILE;
 	  generate_error (&dtp->common, ERROR_END, NULL);
-	  return;
+	  return NULL;
 	}
 
       *length = dtp->u.p.current_unit->bytes_left;