summaryrefslogtreecommitdiff
path: root/libdm/libdm-report.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2018-10-15 15:27:45 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2018-10-15 17:49:44 +0200
commit251366146727aac97af5de2eef855860d14910ca (patch)
treef2c279469e46e0c16e0812e9ef462dbf26d29f6c /libdm/libdm-report.c
parentcbbdace00610ae25a5db8a7156b7d3a2779e4e0b (diff)
downloadlvm2-251366146727aac97af5de2eef855860d14910ca.tar.gz
cov: ensure vars are set
Make sure, tmp_begin and tmp_end are always set, even for blind coverity.
Diffstat (limited to 'libdm/libdm-report.c')
-rw-r--r--libdm/libdm-report.c2
1 files changed, 1 insertions, 1 deletions
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;