about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2008-03-26 11:22:19 +0000
committerJakub Jelinek <jakub@redhat.com>2008-03-26 11:22:19 +0000
commitf23e5ee26d14b7931c65e5df0bf46ff356c6177b (patch)
tree7ec5160f8a03894ed0f4be9a1c312ed5bffdc7e5 /libio
parentd0b6ac6c5023a223e150c49c422c7ad2bd99456c (diff)
downloadglibc-f23e5ee26d14b7931c65e5df0bf46ff356c6177b.tar.gz
glibc-f23e5ee26d14b7931c65e5df0bf46ff356c6177b.tar.xz
glibc-f23e5ee26d14b7931c65e5df0bf46ff356c6177b.zip
Updated to fedora-glibc-20080326T1041 cvs/fedora-glibc-2_7_90-12
Diffstat (limited to 'libio')
-rw-r--r--libio/genops.c3
-rw-r--r--libio/wgenops.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/libio/genops.c b/libio/genops.c
index 7005fdbd96..481fbc52b0 100644
--- a/libio/genops.c
+++ b/libio/genops.c
@@ -300,8 +300,7 @@ save_for_backup (fp, end_p)
 	memcpy (new_buffer + avail,
 		fp->_IO_read_base + least_mark,
 		needed_size);
-      if (fp->_IO_save_base)
-	free (fp->_IO_save_base);
+      free (fp->_IO_save_base);
       fp->_IO_save_base = new_buffer;
       fp->_IO_save_end = new_buffer + avail + needed_size;
     }
diff --git a/libio/wgenops.c b/libio/wgenops.c
index 760a413dc3..e2adedd6d4 100644
--- a/libio/wgenops.c
+++ b/libio/wgenops.c
@@ -553,8 +553,7 @@ save_for_wbackup (fp, end_p)
 		  needed_size * sizeof (wchar_t));
 #endif
 	}
-      if (fp->_wide_data->_IO_save_base)
-	free (fp->_wide_data->_IO_save_base);
+      free (fp->_wide_data->_IO_save_base);
       fp->_wide_data->_IO_save_base = new_buffer;
       fp->_wide_data->_IO_save_end = new_buffer + avail + needed_size;
     }