diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-06-12 16:53:43 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-06-12 16:53:43 +0000 |
commit | 72d4ac23660326e76443cf18f0ed8c2e4792d268 (patch) | |
tree | dec24311250bb61298456c3eb0e8937c3a4b7561 /libio | |
parent | 8ba7d5cebbd4acf40dc8d22982baa50c2e1fd194 (diff) | |
download | glibc-72d4ac23660326e76443cf18f0ed8c2e4792d268.tar.gz |
Updated to fedora-glibc-20080612T1619cvs/fedora-glibc-2_8_90-6
Diffstat (limited to 'libio')
-rw-r--r-- | libio/freopen.c | 5 | ||||
-rw-r--r-- | libio/freopen64.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/libio/freopen.c b/libio/freopen.c index d94a5629f1..d80815f918 100644 --- a/libio/freopen.c +++ b/libio/freopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,95,96,97,98,2000,2001,2002,2003 +/* Copyright (C) 1993,95,96,97,98,2000,2001,2002,2003,2008 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -80,8 +80,7 @@ freopen (filename, mode, fp) if (fd != -1) { __close (fd); - if (filename != NULL) - free ((char *) filename); + free ((char *) filename); } _IO_release_lock (fp); return result; diff --git a/libio/freopen64.c b/libio/freopen64.c index f8da78c46e..2dad6d7b4e 100644 --- a/libio/freopen64.c +++ b/libio/freopen64.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993,1995,1996,1997,1998,2000,2001,2002, 2003 +/* Copyright (C) 1993,1995,1996,1997,1998,2000,2001,2002, 2003, 2008 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -64,8 +64,7 @@ freopen64 (filename, mode, fp) if (fd != -1) { __close (fd); - if (filename != NULL) - free ((char *) filename); + free ((char *) filename); } _IO_release_lock (fp); return result; |