aboutsummaryrefslogtreecommitdiffstats
path: root/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'uri.c')
-rw-r--r--uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uri.c b/uri.c
index ef9ca12d..5f778374 100644
--- a/uri.c
+++ b/uri.c
@@ -874,7 +874,7 @@ xmlURIEscapeStr(const xmlChar *str, const xmlChar *list) {
if (str == NULL)
return(NULL);
len = xmlStrlen(str);
- if (len <= 0) return(NULL);
+ if (!(len > 0)) return(NULL);
len += 20;
ret = (xmlChar *) xmlMalloc(len);