summaryrefslogtreecommitdiff
path: root/assert
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2018-01-31 10:52:14 +0100
committerAndreas Schwab <schwab@suse.de>2018-02-05 11:06:15 +0100
commitf649a1b8b01ffc46a0e0ee5cca0623deccc94bf7 (patch)
treedcc14ac8f612d0ff3592c2c63dc80263ec3aa66c /assert
parent9fdb340e64920cfaf006c8a7042f3ca0373d1d63 (diff)
downloadglibc-f649a1b8b01ffc46a0e0ee5cca0623deccc94bf7.tar.gz
Fix uninitialized variable in assert_perror (bug 22761)
Diffstat (limited to 'assert')
-rw-r--r--assert/assert-perr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/assert/assert-perr.c b/assert/assert-perr.c
index 002a5e8708..4b4fe883fd 100644
--- a/assert/assert-perr.c
+++ b/assert/assert-perr.c
@@ -32,7 +32,7 @@ __assert_perror_fail (int errnum,
char errbuf[1024];
char *e = __strerror_r (errnum, errbuf, sizeof errbuf);
- __assert_fail_base (_("%s%s%s:%u: %s%sUnexpected error: %s.\n"),
+ __assert_fail_base (_("%s%s%s:%u: %s%sUnexpected error: %s.\n%n"),
e, file, line, function);
}
libc_hidden_def (__assert_perror_fail)