From: Yu Watanabe Date: Sat, 10 Nov 2018 07:05:05 +0000 (+0900) Subject: sd-device: fix possible use of uninitialized value X-Git-Tag: v240~367 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d578a2e7399e3a19a94668f363dc2f62bb7582f;p=thirdparty%2Fsystemd.git sd-device: fix possible use of uninitialized value --- 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;