]> 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)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 28 Sep 2023 06:20:58 +0000 (08:20 +0200)
commitbcb40a762cbd98b8098c5ed80aee4576d6f9c31a
tree4c6cde8147ab37befe1980daf31c776c1c4da0f5
parentd496aea39c429509246a4d99669a0e47ba1cbe84
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