summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 14:49:56 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-07-26 14:49:56 +0100
commitd5e76f0a91f566576e9b5daf4aac3b07bd9324c3 (patch)
tree892dacc6df64be9e53d130b194c8f9bf30e43335
parent9b74ca20631b9a3a6094db9366bbb4c694c0d47d (diff)
downloadrspamd-d5e76f0a91f566576e9b5daf4aac3b07bd9324c3.tar.gz
rspamd-d5e76f0a91f566576e9b5daf4aac3b07bd9324c3.zip
[Minor] Fix pointers operations
-rw-r--r--src/libserver/html/html.cxx2
-rw-r--r--src/libserver/url.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 0e1b602f4..5861d45b6 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -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,
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 48e8949d1..b9b19c355 100644
--- a/src/libserver/url.c
+++ b/src/libserver/url.c
@@ -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)++;
}
}
@@ -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);
}