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