You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2013/10/17 17:22:48 UTC
svn commit: r1533111 - /apr/apr/trunk/strings/apr_cpystrn.c
Author: jim
Date: Thu Oct 17 15:22:47 2013
New Revision: 1533111
URL: http://svn.apache.org/r1533111
Log:
make sure d is inited
Modified:
apr/apr/trunk/strings/apr_cpystrn.c
Modified: apr/apr/trunk/strings/apr_cpystrn.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/strings/apr_cpystrn.c?rev=1533111&r1=1533110&r2=1533111&view=diff
==============================================================================
--- apr/apr/trunk/strings/apr_cpystrn.c (original)
+++ apr/apr/trunk/strings/apr_cpystrn.c Thu Oct 17 15:22:47 2013
@@ -46,14 +46,13 @@
APR_DECLARE(char *) apr_cpystrn(char *dst, const char *src, apr_size_t dst_size)
{
- char *d, *end;
+ char *d = dst, *end;
if (dst_size == 0) {
return (dst);
}
if (src) {
- d = dst;
end = dst + dst_size - 1;
for (; d < end; ++d, ++src) {