diff options
author | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2013-10-17 15:22:47 +0000 |
---|---|---|
committer | jim <jim@13f79535-47bb-0310-9956-ffa450edef68> | 2013-10-17 15:22:47 +0000 |
commit | 23adf816edf6a05a5a4446d96ff9b0beb575c3f7 (patch) | |
tree | c8491576df4f3afb035669d82c35785e9929d661 /strings/apr_cpystrn.c | |
parent | cd5a1c869dab03a872e12c28d071f15351297cbb (diff) | |
download | libapr-23adf816edf6a05a5a4446d96ff9b0beb575c3f7.tar.gz |
make sure d is inited
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1533111 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strings/apr_cpystrn.c')
-rw-r--r-- | strings/apr_cpystrn.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/strings/apr_cpystrn.c b/strings/apr_cpystrn.c index d6c98f7e9..d222d0814 100644 --- a/strings/apr_cpystrn.c +++ b/strings/apr_cpystrn.c @@ -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) { |