1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

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.
This commit is contained in:
David Kastrup
2015-11-03 23:08:54 +01:00
committed by Florian Weimer
parent cf09d0b052
commit 8ba14398e6
3 changed files with 9 additions and 2 deletions

View File

@@ -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;