aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/lock.c
diff options
context:
space:
mode:
authorThomas Koenig <Thomas.Koenig@online.de>2005-08-29 20:40:02 +0000
committerThomas Koenig <tkoenig@gcc.gnu.org>2005-08-29 20:40:02 +0000
commit827afb86298f15371c3d1b3c42fa851470d286f0 (patch)
treebc29b9e028673558a3d81e84dae7800d4cf5877a /libgfortran/io/lock.c
parent57247f4b28a219a5dc3159a3bb11bd4785c0409d (diff)
downloadgcc-827afb86298f15371c3d1b3c42fa851470d286f0.zip
gcc-827afb86298f15371c3d1b3c42fa851470d286f0.tar.gz
gcc-827afb86298f15371c3d1b3c42fa851470d286f0.tar.bz2
[multiple changes]
2005-08-29 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/23598 * io/lock.c(library_start): If ioparm.iostat is present, clear it unconditionally. 2005-02-29 Thomas Koenig <Thomas.Koenig@online.de> PR libfortran/23598 * gfortran.dg/iostat_1.f90: New test. From-SVN: r103613
Diffstat (limited to 'libgfortran/io/lock.c')
-rw-r--r--libgfortran/io/lock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgfortran/io/lock.c b/libgfortran/io/lock.c
index 9541fc5..7dc08e1 100644
--- a/libgfortran/io/lock.c
+++ b/libgfortran/io/lock.c
@@ -54,7 +54,7 @@ library_start (void)
stay within the library. */
g.in_library = 1;
- if (ioparm.iostat != NULL && ioparm.library_return == LIBRARY_OK)
+ if (ioparm.iostat != NULL)
*ioparm.iostat = ERROR_OK;
ioparm.library_return = LIBRARY_OK;