OSDN Git Service

contrib/plugins: fix coverity warning in cache
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 9 Oct 2023 16:41:02 +0000 (17:41 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 11 Oct 2023 07:46:39 +0000 (08:46 +0100)
commit60cb16c0d87ae0939f4c53c2444a168fdf790a44
treee9cfad16ae69a32484148f72aff94164eb84a2df
parenta392277dcf00e7bf6f7a0ecc9075ea154532c436
contrib/plugins: fix coverity warning in cache

Coverity complains that appends_stats_line can be fed a 0 leading
to the undefined behaviour of a divide by 0.

Fixes: CID 1519044
Fixes: CID 1519047
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-24-alex.bennee@linaro.org>
contrib/plugins/cache.c