Skip to content

Commit

Permalink
[Minor] Fix pointers operations
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jul 26, 2023
1 parent 9b74ca2 commit d5e76f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libserver/html/html.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ auto html_process_input(struct rspamd_task *task,
rspamd_url_set_add_or_return(url_set, maybe_url.value());
if (maybe_existing == maybe_url.value()) {
if (cur_url_order) {
url->order = *(cur_url_order)++;
url->order = (*cur_url_order)++;
}
url->part_order = cur_url_part_order++;
html_process_query_url(pool, url, url_set,
Expand Down
4 changes: 2 additions & 2 deletions src/libserver/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -3469,7 +3469,7 @@ rspamd_url_query_callback(struct rspamd_url *url, gsize start_offset,
url->part_order = cbd->cur_part_order++;

if (cbd->cur_url_order) {
url->order = *(cbd->cur_url_order)++;
url->order = (*cbd->cur_url_order)++;
}
}

Expand Down Expand Up @@ -3528,7 +3528,7 @@ rspamd_url_text_part_callback(struct rspamd_url *url, gsize start_offset,
url->part_order = cbd->cur_part_order++;

if (cbd->cur_url_order) {
url->order = *(cbd->cur_url_order)++;
url->order = (*cbd->cur_url_order)++;
}
g_ptr_array_add(cbd->part->mime_part->urls, url);
}
Expand Down

0 comments on commit d5e76f0

Please sign in to comment.