diff options
author | David Kastrup <dak@gnu.org> | 2015-11-03 23:08:54 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2015-11-03 23:26:15 +0100 |
commit | 8ba14398e629c1f63b9c91a59a47a713b3cce8bc (patch) | |
tree | 17e10f1cb7803b5995294d463536f1f14abd32dc /assert | |
parent | cf09d0b052cbbfbcabc3c3d78d485876b9b81f9c (diff) | |
download | glibc-8ba14398e629c1f63b9c91a59a47a713b3cce8bc.tar.gz glibc-8ba14398e629c1f63b9c91a59a47a713b3cce8bc.tar.xz glibc-8ba14398e629c1f63b9c91a59a47a713b3cce8bc.zip |
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 'assert')
-rw-r--r-- | assert/assert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assert/assert.h b/assert/assert.h index d04c58cc8a..40b9848c15 100644 --- a/assert/assert.h +++ b/assert/assert.h @@ -85,7 +85,7 @@ __END_DECLS # define assert(expr) \ ((expr) \ ? __ASSERT_VOID_CAST (0) \ - : __assert_fail (__STRING(expr), __FILE__, __LINE__, __ASSERT_FUNCTION)) + : __assert_fail (#expr, __FILE__, __LINE__, __ASSERT_FUNCTION)) # ifdef __USE_GNU # define assert_perror(errnum) \ |