From 8d578a2e7399e3a19a94668f363dc2f62bb7582f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 10 Nov 2018 16:05:05 +0900 Subject: [PATCH] sd-device: fix possible use of uninitialized value --- src/libsystemd/sd-device/device-private.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsystemd/sd-device/device-private.c b/src/libsystemd/sd-device/device-private.c index fa0829885aa..8cc216c3539 100644 --- a/src/libsystemd/sd-device/device-private.c +++ b/src/libsystemd/sd-device/device-private.c @@ -550,7 +550,7 @@ int device_new_from_strv(sd_device **ret, char **strv) { char **key; const char *major = NULL, *minor = NULL; DeviceAction action = _DEVICE_ACTION_INVALID; - uint64_t seqnum; + uint64_t seqnum = 0; int r; assert(ret); @@ -585,7 +585,7 @@ int device_new_from_nulstr(sd_device **ret, uint8_t *nulstr, size_t len) { _cleanup_(sd_device_unrefp) sd_device *device = NULL; const char *major = NULL, *minor = NULL; DeviceAction action = _DEVICE_ACTION_INVALID; - uint64_t seqnum; + uint64_t seqnum = 0; unsigned i = 0; int r; -- 2.47.3