diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-03 17:27:00 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-04-03 17:27:00 +0200 |
commit | afcac065c0f649ebcf0f450475a8d7c3bc776d14 (patch) | |
tree | 694a6bee208bad0462d9cfe361f001b112219e83 /src/libsystemd/sd-device | |
parent | cdfee94318506c9348f8c30b9b7a7c87ec75927c (diff) |
sd-device: initialize variable
sysnum would not be initialized if sysname had no trailing digits.
Diffstat (limited to 'src/libsystemd/sd-device')
-rw-r--r-- | src/libsystemd/sd-device/sd-device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-device/sd-device.c b/src/libsystemd/sd-device/sd-device.c index da1052c8fb..3179d16b21 100644 --- a/src/libsystemd/sd-device/sd-device.c +++ b/src/libsystemd/sd-device/sd-device.c @@ -930,7 +930,7 @@ _public_ int sd_device_get_devname(sd_device *device, const char **devname) { static int device_set_sysname(sd_device *device) { _cleanup_free_ char *sysname = NULL; - const char *sysnum; + const char *sysnum = NULL; const char *pos; size_t len = 0; |