mirror of
https://github.com/systemd/systemd.git
synced 2025-03-09 12:58:26 +03:00
sd-device: fix possible use-of-uninitialized-value
This commit is contained in:
parent
17761fb3bf
commit
9c5d7151c1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user