diff options
author | Mike Hommey <mh@glandium.org> | 2005-02-05 12:06:19 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2005-02-05 12:06:19 +0000 |
commit | a7457388701e6ccba9091ba3ec09505dc903b758 (patch) | |
tree | 80a7d0fba3968fee73cc71a62ffe1af039396f29 /uri.c | |
parent | f51dd67f3a3f472af0620391eb588eeca4533689 (diff) | |
download | libxml2-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) { |