Skip to content

Commit

Permalink
lmtp_sieve: fix use of uninitialized variable
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Stepanek <[email protected]>

backport of 18bd7d2
  • Loading branch information
rsto authored and dilyanpalauzov committed Aug 16, 2023
1 parent 10a72d8 commit 092bcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imap/lmtp_sieve.c
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,7 @@ static int sieve_imip(void *ac, void *ic, void *sc, void *mc,
const char *originator = NULL, *recipient = NULL;
strarray_t sched_addresses = STRARRAY_INITIALIZER;
unsigned sched_flags = 0;
struct bodypart **parts = NULL;
int ret = 0;

prometheus_increment(CYRUS_LMTP_SIEVE_IMIP_TOTAL);
Expand All @@ -1438,7 +1439,6 @@ static int sieve_imip(void *ac, void *ic, void *sc, void *mc,

/* XXX currently struct bodypart as defined in message.h is the same as
sieve_bodypart_t as defined in sieve_interface.h, so we can typecast */
struct bodypart **parts = NULL;
const char *content_types[] = { "text/calendar", NULL };
message_fetch_part(mydata->content, content_types, &parts);
if (parts && parts[0]) {
Expand Down

0 comments on commit 092bcf0

Please sign in to comment.