Skip to content

Commit 5869f63

Browse files
committed
Merge branch 'prime'
2 parents 5bcce22 + eede87f commit 5869f63

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

lib/email/mjson.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static int mjson_fetch_mime_structure(mjson_io &io, const MJSON_MIME *pmime,
344344
buf += " NIL";
345345
}
346346
buf += pmime->cid.size() > 0 && str_isasciipr(pmime->cid.c_str()) ?
347-
"\"" + mjson_add_backslash(pmime->cid.c_str()) + "\"" :
347+
" \"" + mjson_add_backslash(pmime->cid.c_str()) + "\"" :
348348
" NIL";
349349

350350
/* body description */

lib/ruleproc.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -720,22 +720,22 @@ static ec_error_t op_copy_other(rxparam &par, const rule_node &rule,
720720
auto &props = dst->proplist;
721721
if (!props.has(PR_LAST_MODIFICATION_TIME)) {
722722
auto last_time = rop_util_current_nttime();
723-
auto err = cu_set_propval(props, PR_LAST_MODIFICATION_TIME, &last_time);
724-
if (err != ecSuccess)
725-
return err;
723+
auto ern = props.set(PR_LAST_MODIFICATION_TIME, &last_time);
724+
if (ern != 0)
725+
return ecServerOOM;
726726
}
727-
err = cu_set_propval(props, PidTagMid, &dst_mid);
728-
if (err != ecSuccess)
729-
return err;
730-
err = cu_set_propval(props, PidTagChangeNumber, &dst_cn);
731-
if (err != ecSuccess)
732-
return err;
733-
err = cu_set_propval(props, PR_CHANGE_KEY, &xidbin);
734-
if (err != ecSuccess)
735-
return err;
736-
err = cu_set_propval(props, PR_PREDECESSOR_CHANGE_LIST, pclbin.get());
737-
if (err != ecSuccess)
738-
return err;
727+
auto ern = props.set(PidTagMid, &dst_mid);
728+
if (ern != 0)
729+
return ecServerOOM;
730+
ern = props.set(PidTagChangeNumber, &dst_cn);
731+
if (ern != 0)
732+
return ecServerOOM;
733+
ern = props.set(PR_CHANGE_KEY, &xidbin);
734+
if (ern != 0)
735+
return ecServerOOM;
736+
ern = props.set(PR_PREDECESSOR_CHANGE_LIST, pclbin.get());
737+
if (ern != 0)
738+
return ecServerOOM;
739739

740740
/* Writeout */
741741
ec_error_t e_result = ecRpcFailed;

0 commit comments

Comments
 (0)