From: Yu Watanabe Date: Mon, 9 Jan 2023 02:00:53 +0000 (+0900) Subject: bootctl: 'tmp' is always non-NULL X-Git-Tag: v253-rc1~154^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F25979%2Fhead;p=thirdparty%2Fsystemd.git bootctl: 'tmp' is always non-NULL Fixes CID#1502330. --- diff --git a/src/boot/bootctl-random-seed.c b/src/boot/bootctl-random-seed.c index e512b9b68c9..deda4debd20 100644 --- a/src/boot/bootctl-random-seed.c +++ b/src/boot/bootctl-random-seed.c @@ -169,8 +169,8 @@ int install_random_seed(const char *esp) { return set_system_token(); fail: - if (tmp) - (void) unlinkat(loader_dir_fd, tmp, 0); + assert(tmp); + (void) unlinkat(loader_dir_fd, tmp, 0); return r; }