Commit 5628cd2c authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

ccan: Fix calling memset with zero length parameter

Signed-off-by: default avatarVolker Lendecke <vl@samba.org>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent ba57295a
......@@ -506,11 +506,11 @@ char *tally_histogram(const struct tally *tally,
if (count > covered) {
count -= covered;
memset(p, '*', count);
} else {
count = 0;
}
memset(p, '*', count);
p += count;
*p = '\n';
p++;
......
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