master - cov: ensure vars are set
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=251366146727aac97af5de2eef855860d14910ca Commit: 251366146727aac97af5de2eef855860d14910ca Parent: cbbdace00610ae25a5db8a7156b7d3a2779e4e0b Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Oct 15 15:27:45 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Oct 15 17:49:44 2018 +0200
cov: ensure vars are set
Make sure, tmp_begin and tmp_end are always set, even for blind coverity.
--- device_mapper/libdm-report.c | 2 +- libdm/libdm-report.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
device_mapper/libdm-report.c +1 -1
@@ -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;
libdm/libdm-report.c +1 -1
@@ -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;