From 8ba14398e629c1f63b9c91a59a47a713b3cce8bc Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Tue, 3 Nov 2015 23:08:54 +0100 Subject: 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. --- malloc/malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc/malloc.c') diff --git a/malloc/malloc.c b/malloc/malloc.c index 35c8863a32..839263efc5 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; -- cgit v1.2.3