libmount/src/hook_veritydev.c: In function 'setup_veritydev':
libmount/src/hook_veritydev.c:457:13: warning: '%s' directive argument is null [-Wformat-overflow=]
Signed-off-by: Karel Zak <kzak@redhat.com>
* a lot of time and resources when there are duplicated mounts. If the roothash is the same, then the volumes
* are also guaranteed to be identical. This is what systemd also does, so we can deduplicate across the whole
* system. */
- if (asprintf(&mapper_device, "%s-verity", root_hash) < 0)
+ if (!rc && asprintf(&mapper_device, "%s-verity", root_hash) < 0)
rc = -ENOMEM;
if (!rc)