diff --git a/device_mapper/libdm-report.c b/device_mapper/libdm-report.c index cbd0d1669..85d3d0f82 100644 --- a/device_mapper/libdm-report.c +++ b/device_mapper/libdm-report.c @@ -2381,7 +2381,7 @@ static const char *_get_reserved(struct dm_report *rh, unsigned type, { const struct dm_report_reserved_value *iter = implicit ? NULL : rh->reserved_values; const struct dm_report_field_reserved_value *frv; - const char *tmp_begin, *tmp_end, *tmp_s = s; + const char *tmp_begin = NULL, *tmp_end = NULL, *tmp_s = s; const char *name = NULL; char c; diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 01255b4d2..a44701704 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -2380,7 +2380,7 @@ static const char *_get_reserved(struct dm_report *rh, unsigned type, { const struct dm_report_reserved_value *iter = implicit ? NULL : rh->reserved_values; const struct dm_report_field_reserved_value *frv; - const char *tmp_begin, *tmp_end, *tmp_s = s; + const char *tmp_begin = NULL, *tmp_end = NULL, *tmp_s = s; const char *name = NULL; char c;