diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-15 13:38:30 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-01-15 13:38:30 +0100 |
commit | 376ee2c312b87951028a0adff96b1052f32475fa (patch) | |
tree | f791321bc88619919b2b2db97f921661f3c59d97 | |
parent | 9e3e592946668dc72ffba6f3598b244eaff6d1ae (diff) | |
download | systemd-376ee2c312b87951028a0adff96b1052f32475fa.tar.gz |
sd-device: silence gcc warning with newest gcc
-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 94ea61cc8d..b163a0fb6b 100644 --- a/src/libsystemd/sd-device/sd-device.c +++ b/src/libsystemd/sd-device/sd-device.c @@ -1392,7 +1392,7 @@ int device_read_db_internal_filename(sd_device *device, const char *filename) { _cleanup_free_ char *db = NULL; const char *value; size_t db_len; - char key; + char key = '\0'; /* Unnecessary initialization to appease gcc-12.0.0-0.4.fc36 */ int r; enum { |