diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2015-07-08 14:53:23 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2015-07-08 14:53:30 +0200 |
commit | 3ec4813ba22adedb8914089b6f17fe779d76ee77 (patch) | |
tree | 079ac30beaab2836e483b09282cbcac9f90b8383 /tools/lvresize.c | |
parent | e8dbaf62d3b3e2a175d3b0237a4d85c009d98038 (diff) | |
download | lvm2-3ec4813ba22adedb8914089b6f17fe779d76ee77.tar.gz |
coverity: fix missing initialization
... Using uninitialized value "lockd_state" when calling "lockd_vg"
(even though lockd_vg assigns 0 to the lockd_state, but it looks at
previous state of lockd_state just before that so we need to have
that properly initialized!)
libdm/libdm-report.c:2934: uninit_use_in_call: Using uninitialized value "tm". Field "tm.tm_gmtoff" is uninitialized when calling "_get_final_time".
daemons/lvmlockd/lvmlockctl.c:273: uninit_use_in_call: Using uninitialized element of array "r_name" when calling "format_info_r_action". (just added FIXME as this looks unfinished?)
Diffstat (limited to 'tools/lvresize.c')
-rw-r--r-- | tools/lvresize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lvresize.c b/tools/lvresize.c index 30ac4f987..3188f27cb 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -169,7 +169,7 @@ int lvresize(struct cmd_context *cmd, int argc, char **argv) struct volume_group *vg; struct dm_list *pvh = NULL; struct logical_volume *lv; - uint32_t lockd_state; + uint32_t lockd_state = 0; int r = ECMD_FAILED; if (!_lvresize_params(cmd, argc, argv, &lp)) |