dovecot-2.2: Make static analyzer happier.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Sep 22 11:27:45 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/46e5f4a5282d
changeset: 19180:46e5f4a5282d
user: Timo Sirainen <tss at iki.fi>
date: Tue Sep 22 14:26:25 2015 +0300
description:
Make static analyzer happier.
diffstat:
src/lib/test-timing.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r e6b3170648c7 -r 46e5f4a5282d src/lib/test-timing.c
--- a/src/lib/test-timing.c Tue Sep 22 14:26:08 2015 +0300
+++ b/src/lib/test-timing.c Tue Sep 22 14:26:25 2015 +0300
@@ -13,6 +13,8 @@
uint64_t *copy;
unsigned int i;
+ i_assert(input_size > 0);
+
copy = i_new(uint64_t, input_size);
for (i = 0; i < input_size; i++) {
uint64_t value = input[i];
More information about the dovecot-cvs
mailing list