diff options
author | default <nobody@localhost> | 2024-05-25 08:24:08 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-05-25 08:24:08 +0200 |
commit | a2920800007c291bdf2b5264622cbc713d4961ee (patch) | |
tree | 9fb1b2b89e0bfbb4b8bf1e85d840c8653e646bb7 /xs_url.h | |
parent | f631fc5ed22cb49d9d9f6a481f4a5d227c180246 (diff) |
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) /* split by arguments */ xs *args = xs_split(str, "&"); - xs_list *l; + int ct = 0; const xs_val *v; - l = args; - while (xs_list_iter(&l, &v)) { + while (xs_list_next(args, &v, &ct)) { xs *kv = xs_split_n(v, "=", 1); if (xs_list_len(kv) == 2) { |