diff options
Diffstat (limited to 'xs_url.h')
| -rw-r--r-- | xs_url.h | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -51,11 +51,10 @@ xs_dict *xs_url_vars(const char *str) | |||
| 51 | /* split by arguments */ | 51 | /* split by arguments */ |
| 52 | xs *args = xs_split(str, "&"); | 52 | xs *args = xs_split(str, "&"); |
| 53 | 53 | ||
| 54 | xs_list *l; | 54 | int ct = 0; |
| 55 | const xs_val *v; | 55 | const xs_val *v; |
| 56 | 56 | ||
| 57 | l = args; | 57 | while (xs_list_next(args, &v, &ct)) { |
| 58 | while (xs_list_iter(&l, &v)) { | ||
| 59 | xs *kv = xs_split_n(v, "=", 1); | 58 | xs *kv = xs_split_n(v, "=", 1); |
| 60 | 59 | ||
| 61 | if (xs_list_len(kv) == 2) { | 60 | if (xs_list_len(kv) == 2) { |