]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: check blkid_get_cache() return value [coverity scan]
authorKarel Zak <kzak@redhat.com>
Fri, 10 Dec 2021 15:22:07 +0000 (16:22 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 10 Dec 2021 15:22:07 +0000 (16:22 +0100)
commit0aa42a8107d023e2cf4898d7ad205650ca4524f0
tree8f7d90774a73654132675ad746dcbbe82afd14e2
parent7b5f2c977764dddf8667597275b44a3c821b1190
libblkid: check blkid_get_cache() return value [coverity scan]

CID 374488:  Error handling issues  (CHECKED_RETURN)
Calling "blkid_get_cache" without checking return value (as is done elsewhere 4 out of 5 times).

It's probably unnecessary as we check the cache pointer later, but let's
make it more robust for static analyzers.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/evaluate.c