]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: Check to avoid divide by zero 17220/head
authoramitkuma <amitkuma@redhat.com>
Thu, 24 Aug 2017 18:02:46 +0000 (23:32 +0530)
committeramitkuma <amitkuma@redhat.com>
Mon, 28 Aug 2017 15:49:17 +0000 (21:19 +0530)
commitf74221b3a8196bab5b921f9f32eae053a53a13fa
tree70f78b76cc8309ec5e30efc94738848287f76296
parent270f1edaae41d0a9eb17e5c37295621f9259e8a0
test: Check to avoid divide by zero

Fixes the coverity issue:

** 1219467 Division or modulo by zero
CID 1219467 (#1 of 1): Division or modulo by zero (DIVIDE_BY_ZERO)
74. divide_by_zero: In expression 100 / atoi(args[i + 1U]), division
 by expression atoi(args[i + 1U]) which may be zero has undefined behavior.

Signed-off-by: Amit Kumar amitkuma@redhat.com
src/test/kv_store_bench.cc