]> git.ipfire.org Git - thirdparty/util-linux.git/commit
readprofile: fix static analyzer warning [coverity scan]
authorKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2021 10:15:48 +0000 (11:15 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Feb 2021 10:24:12 +0000 (11:24 +0100)
commit4f62b0b1dd0aea388861054cbcb180bbf93343fa
tree580faff62431b61ffd698b5c7c26969a6b68d5da
parent061e26d06df54e9ba6fd092b230206e4c3c5e6dc
readprofile: fix static analyzer warning [coverity scan]

Make sure we do not use step=0 and zero "fn_add - add0" as divisor.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/readprofile.c