summaryrefslogtreecommitdiff
path: root/uri.c
diff options
context:
space:
mode:
authorAron Xu <aron@debian.org>2012-05-25 04:03:35 +0000
committerAron Xu <aron@debian.org>2012-05-25 04:03:35 +0000
commitd7372d053bbd1d58216fbb04d1771ffa4cc3e624 (patch)
tree62b661911406394bbeaca8951d660bb6d8aac0de /uri.c
parent2d1849b271fa8697b88d07ba7d78dc83591e1363 (diff)
downloadlibxml2-upstream/2.8.0+dfsg1.tar.gz
Imported Upstream version 2.8.0+dfsg1upstream/2.8.0+dfsg1
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/uri.c b/uri.c
index 1ae5768..7e2f525 100644
--- a/uri.c
+++ b/uri.c
@@ -5,6 +5,8 @@
*
* See Copyright for the status of this software.
*
+ * TODO: that module behaves really badly on OOM situation
+ *
* daniel@veillard.com
*/
@@ -1604,10 +1606,11 @@ xmlNormalizeURIPath(char *path) {
break;
}
/* Valgrind complained, strcpy(cur, segp + 3); */
- /* string will overlap, do not use strcpy */
- tmp = cur;
- segp += 3;
- while ((*tmp++ = *segp++) != 0);
+ /* string will overlap, do not use strcpy */
+ tmp = cur;
+ segp += 3;
+ while ((*tmp++ = *segp++) != 0)
+ ;
/* If there are no previous segments, then keep going from here. */
segp = cur;