summaryrefslogtreecommitdiff
path: root/uri.c
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2005-02-05 12:06:19 +0000
committerMike Hommey <mh@glandium.org>2005-02-05 12:06:19 +0000
commita7457388701e6ccba9091ba3ec09505dc903b758 (patch)
tree80a7d0fba3968fee73cc71a62ffe1af039396f29 /uri.c
parentf51dd67f3a3f472af0620391eb588eeca4533689 (diff)
downloadlibxml2-a7457388701e6ccba9091ba3ec09505dc903b758.tar.gz
Load /tmp/tmp.5kkLmZ/libxml2-2.6.17 intoupstream/2.6.17
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uri.c b/uri.c
index f62a3f6..fd6b588 100644
--- a/uri.c
+++ b/uri.c
@@ -531,7 +531,7 @@ xmlSaveUri(xmlURIPtr uri) {
* @stream: a FILE* for the output
* @uri: pointer to an xmlURI
*
- * Prints the URI in the stream @steam.
+ * Prints the URI in the stream @stream.
*/
void
xmlPrintURI(FILE *stream, xmlURIPtr uri) {
@@ -874,6 +874,8 @@ xmlURIEscapeStr(const xmlChar *str, const xmlChar *list) {
if (str == NULL)
return(NULL);
+ if (str[0] == 0)
+ return(xmlStrdup(str));
len = xmlStrlen(str);
if (!(len > 0)) return(NULL);
@@ -1690,7 +1692,7 @@ xmlParseURIReference(xmlURIPtr uri, const char *str) {
*
* URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
*
- * Returns a newly build xmlURIPtr or NULL in case of error
+ * Returns a newly built xmlURIPtr or NULL in case of error
*/
xmlURIPtr
xmlParseURI(const char *str) {