summaryrefslogtreecommitdiff
path: root/xs_url.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-08-30 19:10:26 +0200
committerdefault <nobody@localhost>2024-08-30 19:10:26 +0200
commit0218e964b0d73340c8d0c5d9e37991359d7c4be9 (patch)
tree9cfc1650abf8780be52dc219e37a311244a294e2 /xs_url.h
parentbff33fc2eda701ff5d6cd8433c15dfd9aca768f7 (diff)
Backport from xs.
Diffstat (limited to 'xs_url.h')
-rw-r--r--xs_url.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xs_url.h b/xs_url.h
index 56e0f53..efc883b 100644
--- a/xs_url.h
+++ b/xs_url.h
@@ -50,10 +50,9 @@ xs_dict *xs_url_vars(const char *str)
/* split by arguments */
xs *args = xs_split(str, "&");
- int ct = 0;
const xs_val *v;
- while (xs_list_next(args, &v, &ct)) {
+ xs_list_foreach(args, v) {
xs *kv = xs_split_n(v, "=", 1);
if (xs_list_len(kv) == 2) {