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

This commit is contained in:
Yu Watanabe
2022-04-18 04:34:14 +09:00
parent 17761fb3bf
commit 9c5d7151c1
+1 -1
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);