29 lines
998 B
Diff
29 lines
998 B
Diff
From 9c5d7151c14134fc45bf8dc2795fadccb5c3399c Mon Sep 17 00:00:00 2001
|
|
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
Date: Sun, 17 Apr 2022 16:09:11 +0900
|
|
Subject: [PATCH] sd-device: fix possible use-of-uninitialized-value
|
|
|
|
Conflict:NA
|
|
Reference:https://github.com/systemd/systemd/commit/9c5d7151c14134fc45bf8dc2795fadccb5c3399c
|
|
|
|
---
|
|
src/libsystemd/sd-device/device-private.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/libsystemd/sd-device/device-private.c b/src/libsystemd/sd-device/device-private.c
|
|
index 47b62e7421..42a5467b81 100644
|
|
--- a/src/libsystemd/sd-device/device-private.c
|
|
+++ b/src/libsystemd/sd-device/device-private.c
|
|
@@ -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);
|
|
--
|
|
2.39.1
|
|
|