summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2016-09-21 15:52:23 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2016-09-21 15:52:23 +0200
commit926a56578185c7f22c9b3e9c36ff660ce6288c16 (patch)
tree11e9a4aba187d2d84f24ab2959ad7a39b030818c
parent7ea5758c919022e6bca9ebe15aec160fd5ef2430 (diff)
downloadlvm2-926a56578185c7f22c9b3e9c36ff660ce6288c16.tar.gz
coverity: dmsetup: fix possible use of uninitialized value
-rw-r--r--tools/dmsetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 5f4c19230..5b817bb84 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -4956,7 +4956,7 @@ static int _stats_create_file(CMD_ARGS)
struct dm_histogram *bounds = NULL;
char *path, *abspath = NULL;
struct dm_stats *dms = NULL;
- int group, fd, precise;
+ int group, fd = -1, precise;
if (_switches[AREAS_ARG] || _switches[AREA_SIZE_ARG]) {
log_error("--filemap is incompatible with --areas and --area-size.");