1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

sd-device: silence gcc warning with newest gcc

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-01-15 13:38:30 +01:00
parent 9e3e592946
commit 376ee2c312

View File

@ -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 {