aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-18 15:53:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-18 15:53:20 +0100
commitcd50e7bd57981b7b7a01eec88ae06968c625b2a7 (patch)
tree9e4a01bea6d6223f58a4980940403dd2fbcb8b9c /src/libmime
parent907cc2eb616124abe41e7c1b525139a54f3cea8f (diff)
downloadrspamd-cd50e7bd57981b7b7a01eec88ae06968c625b2a7.tar.gz
rspamd-cd50e7bd57981b7b7a01eec88ae06968c625b2a7.zip
[Minor] Fix some more issues
Found by: coverity scan
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/archives.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libmime/archives.c b/src/libmime/archives.c
index 467f9c021..8ce767ce1 100644
--- a/src/libmime/archives.c
+++ b/src/libmime/archives.c
@@ -1410,9 +1410,8 @@ rspamd_7zip_read_archive_props (struct rspamd_task *task,
* }
*/
- proptype = *p;
-
if (p != NULL) {
+ proptype = *p;
SZ_SKIP_BYTES(1);
while (proptype != 0) {