aboutsummaryrefslogtreecommitdiff
path: root/malloc/malloc.c
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2015-11-03 23:08:54 +0100
committerFlorian Weimer <fweimer@redhat.com>2015-11-03 23:26:15 +0100
commit8ba14398e629c1f63b9c91a59a47a713b3cce8bc (patch)
tree17e10f1cb7803b5995294d463536f1f14abd32dc /malloc/malloc.c
parentcf09d0b052cbbfbcabc3c3d78d485876b9b81f9c (diff)
downloadglibc-8ba14398e629c1f63b9c91a59a47a713b3cce8bc.zip
glibc-8ba14398e629c1f63b9c91a59a47a713b3cce8bc.tar.gz
glibc-8ba14398e629c1f63b9c91a59a47a713b3cce8bc.tar.bz2
Don't macro-expand failed assertion expression [BZ #18604]
[BZ #18604] * assert/assert.h (assert): Don't macro-expand failed assertion expression in error message. * malloc/malloc.c (assert): Likewise.
Diffstat (limited to 'malloc/malloc.c')
-rw-r--r--malloc/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 35c8863..839263e 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -283,7 +283,7 @@
# define assert(expr) \
((expr) \
? ((void) 0) \
- : __malloc_assert (__STRING (expr), __FILE__, __LINE__, __func__))
+ : __malloc_assert (#expr, __FILE__, __LINE__, __func__))
extern const char *__progname;