diff options
| author | 2024-03-09 08:44:48 +0100 | |
|---|---|---|
| committer | 2024-03-09 08:44:48 +0100 | |
| commit | 91bb0615d982d1adcc5680c346f9510905464584 (patch) | |
| tree | 5433a2dcdc2cc34115b76570bdc63b49429093bc /utils.c | |
| parent | Backport from xs. (diff) | |
| download | penes-snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.gz penes-snac2-91bb0615d982d1adcc5680c346f9510905464584.tar.xz penes-snac2-91bb0615d982d1adcc5680c346f9510905464584.zip | |
Replaced most xs_dict_iter() with xs_dict_next().
Diffstat (limited to 'utils.c')
| -rw-r--r-- | utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -423,7 +423,8 @@ void verify_links(snac *user) | |||
| 423 | headers = xs_dict_append(headers, "accept", "text/html"); | 423 | headers = xs_dict_append(headers, "accept", "text/html"); |
| 424 | headers = xs_dict_append(headers, "user-agent", USER_AGENT " (link verify)"); | 424 | headers = xs_dict_append(headers, "user-agent", USER_AGENT " (link verify)"); |
| 425 | 425 | ||
| 426 | while (p && xs_dict_iter(&p, &k, &v)) { | 426 | int c = 0; |
| 427 | while (p && xs_dict_next(p, &k, &v, &c)) { | ||
| 427 | /* not an https link? skip */ | 428 | /* not an https link? skip */ |
| 428 | if (!xs_startswith(v, "https:/" "/")) | 429 | if (!xs_startswith(v, "https:/" "/")) |
| 429 | continue; | 430 | continue; |