1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

coverity: dmsetup: fix possible use of uninitialized value

This commit is contained in:
Peter Rajnoha 2016-09-21 15:52:23 +02:00
parent 7ea5758c91
commit 926a565781

View File

@ -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.");