Browse Source

More xs_url_dec() fixes.

default 1 year ago
parent
commit
636d026e13
1 changed files with 3 additions and 0 deletions
  1. 3 0
      xs_url.h

+ 3 - 0
xs_url.h

@@ -17,6 +17,9 @@ xs_str *xs_url_dec(const char *str)
     xs_str *s = xs_str_new(NULL);
 
     while (*str) {
+        if (!xs_is_string(str))
+            break;
+
         if (*str == '%') {
             unsigned int i;