Commit 4f03022f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Avoid sideeffects in assert

Spotted by: Coverity
parent 175e7116
......@@ -401,7 +401,8 @@ VSLb_bin(struct vsl_log *vsl, enum VSL_tag_e tag, ssize_t len, const void *ptr)
assert(VSL_END(vsl->wlp, len * 2 + 1) < vsl->wle);
p = VSL_DATA(vsl->wlp);
for (ll = 0; ll < len; ll++) {
assert(snprintf(p, 3, "%02x", *pp++) == 2);
assert(snprintf(p, 3, "%02x", *pp) == 2);
pp++;
p += 2;
}
if (suff)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment