summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xs_url.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xs_url.h b/xs_url.h
index fd320a4..8e2e243 100644
--- a/xs_url.h
+++ b/xs_url.h
@@ -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