about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-05-14 15:30:30 +0200
committerAndreas Jaeger <aj@suse.de>2012-05-14 15:30:30 +0200
commit1bfb72913bf82781ae232d056991362b2b071800 (patch)
tree902e1e8d2155d9f31242e5331f03c1cc39a8d81e
parentc044d724dc0fb61ba194d853b266f4a4dbd1329d (diff)
downloadglibc-1bfb72913bf82781ae232d056991362b2b071800.tar.gz
glibc-1bfb72913bf82781ae232d056991362b2b071800.tar.xz
glibc-1bfb72913bf82781ae232d056991362b2b071800.zip
Fix concat example
2012-05-14  Andreas Jaeger  <aj@suse.de>

	* manual/string.texi (Copying and Concatenation): Add missing
	variable in concat example.
	Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
-rw-r--r--ChangeLog6
-rw-r--r--manual/string.texi1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 56e19afabe..2c6a699ce9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-14  Andreas Jaeger  <aj@suse.de>
+
+	* manual/string.texi (Copying and Concatenation): Add missing
+	variable in concat example.
+	Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
+
 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
diff --git a/manual/string.texi b/manual/string.texi
index af21bccf48..5051f545c1 100644
--- a/manual/string.texi
+++ b/manual/string.texi
@@ -886,6 +886,7 @@ concat (const char *str, @dots{})
     @{
       char *newp;
       char *wp;
+      const char *s;
 
       va_start (ap, str);