From 8b4941a9ebc83b49d25215ae914169db8441aafd Mon Sep 17 00:00:00 2001 From: root Date: Wed, 13 Mar 2019 14:42:59 +0800 Subject: [PATCH 13/17] cov: ensure vars are set Make sure, tmp_begin and tmp_end are always set, even for blind coverity. (cherry picked from commit 251366146727aac97af5de2eef855860d14910ca) Conflicts: device_mapper/libdm-report.c --- libdm/libdm-report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 6d140af..0401f9c 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; -- 2.19.1