diff options
| author | 2024-08-30 19:10:26 +0200 | |
|---|---|---|
| committer | 2024-08-30 19:10:26 +0200 | |
| commit | 0218e964b0d73340c8d0c5d9e37991359d7c4be9 (patch) | |
| tree | 9cfc1650abf8780be52dc219e37a311244a294e2 /xs_url.h | |
| parent | timeline_del() also deletes from the pinned and bookmark caches. (diff) | |
| download | penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.gz penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.tar.xz penes-snac2-0218e964b0d73340c8d0c5d9e37991359d7c4be9.zip | |
Backport from xs.
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) { |