summary refs log tree commit diff
path: root/sysdeps/generic/sysd-stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/sysd-stdio.c')
-rw-r--r--sysdeps/generic/sysd-stdio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/generic/sysd-stdio.c b/sysdeps/generic/sysd-stdio.c
index fef0ed4d9a..7a3f7fc918 100644
--- a/sysdeps/generic/sysd-stdio.c
+++ b/sysdeps/generic/sysd-stdio.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
 This file is part of the GNU C Library.
 
 The GNU C Library is free software; you can redistribute it and/or
@@ -174,6 +174,8 @@ DEFUN(__stdio_reopen, (filename, m, cookieptr),
 	  if (__stdio_open (filename, m, &newcookie))
 	    return -1;
 	}
+      else
+	return -1;
     }
 
   if (newcookie != *cookieptr)