aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--debug/stpncpy_chk.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 793448fee9..c34668bb6d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2013-12-05 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
+
[BZ #15941]
* Makefile (INSTALL): Add install-plain.texi as the primary
dependency.
diff --git a/debug/stpncpy_chk.c b/debug/stpncpy_chk.c
index f9fa66ccaf..0bc6ae2b11 100644
--- a/debug/stpncpy_chk.c
+++ b/debug/stpncpy_chk.c
@@ -25,9 +25,6 @@
char *
__stpncpy_chk (char *dest, const char *src, size_t n, size_t destlen)
{
- char c;
- char *s = dest;
-
if (__builtin_expect (destlen < n, 0))
__chk_fail ();