1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-08 08:58:27 +03:00

sd-device: fix possible use-of-uninitialized-value

This commit is contained in:
Yu Watanabe 2022-04-17 16:09:11 +09:00
parent 17761fb3bf
commit 9c5d7151c1

View File

@ -793,7 +793,7 @@ int device_rename(sd_device *device, const char *name) {
int device_shallow_clone(sd_device *old_device, sd_device **new_device) {
_cleanup_(sd_device_unrefp) sd_device *ret = NULL;
const char *val;
const char *val = NULL;
int r;
assert(old_device);