]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/idcache: always gracefully handle null cache
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 27 Sep 2023 22:40:28 +0000 (00:40 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Nov 2023 09:54:30 +0000 (10:54 +0100)
commit3d31216787d6725fed361d27f0f01aff6ef46981
tree6c79701196109b355e6d7b33b01b1463fa04f7b0
parent368521e45e1c9cb44145fc72c04d1cc903a883e8
lib/idcache: always gracefully handle null cache

The "get" functions already do this and some callers rely on it also for
"add" ones.

For completeness also handle it in free_idcache().

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
lib/idcache.c