diff options
| -rw-r--r-- | xs_url.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -17,6 +17,9 @@ xs_str *xs_url_dec(const char *str) | |||
| 17 | xs_str *s = xs_str_new(NULL); | 17 | xs_str *s = xs_str_new(NULL); |
| 18 | 18 | ||
| 19 | while (*str) { | 19 | while (*str) { |
| 20 | if (!xs_is_string(str)) | ||
| 21 | break; | ||
| 22 | |||
| 20 | if (*str == '%') { | 23 | if (*str == '%') { |
| 21 | unsigned int i; | 24 | unsigned int i; |
| 22 | 25 | ||