diff options
| author | 2024-05-25 08:24:08 +0200 | |
|---|---|---|
| committer | 2024-05-25 08:24:08 +0200 | |
| commit | a2920800007c291bdf2b5264622cbc713d4961ee (patch) | |
| tree | 9fb1b2b89e0bfbb4b8bf1e85d840c8653e646bb7 /xs_url.h | |
| parent | Added a 'title' to each list timeline. (diff) | |
| download | penes-snac2-a2920800007c291bdf2b5264622cbc713d4961ee.tar.gz penes-snac2-a2920800007c291bdf2b5264622cbc713d4961ee.tar.xz penes-snac2-a2920800007c291bdf2b5264622cbc713d4961ee.zip | |
Backport from xs (fix regex.h compilation with tcc).
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) { |