This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Remove socket.S implementation
- From: Chris Metcalf <cmetcalf at ezchip dot com>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 27 May 2015 16:13:35 -0400
- Subject: Re: [PATCH] Remove socket.S implementation
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp dot mailfrom=cmetcalf at ezchip dot com;
- References: <555C9805 dot 1010100 at linaro dot org>
On 05/20/2015 10:19 AM, Adhemerval Zanella wrote:
diff --git a/sysdeps/unix/sysv/linux/malloc-sysdep.h b/sysdeps/unix/sysv/linux/malloc-sysdep.h
index cd6255f..6af1107 100644
--- a/sysdeps/unix/sysv/linux/malloc-sysdep.h
+++ b/sysdeps/unix/sysv/linux/malloc-sysdep.h
@@ -46,7 +46,7 @@ check_may_shrink_heap (void)
O_RDONLY | O_CLOEXEC);
if (fd >= 0)
{
- char val;
+ char val = 0;
ssize_t n = read_not_cancel (fd, &val, 1);
may_shrink_heap = n > 0 && val == '2';
close_not_cancel_no_status (fd);
If you were doing this to avoid the compiler warning on tile, you
should probably revert it from the patch now.
--
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com