diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-09 16:12:38 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-10 01:35:02 +0100 |
commit | f7912635a0698b73120adf499f335145506a8b9e (patch) | |
tree | 09fad0b187fcdb67f8a25890061fa4f8f46f91ca /lib/config | |
parent | 8a0367524182f55e7e982f0b5700d90f2a9519e2 (diff) | |
download | lvm2-f7912635a0698b73120adf499f335145506a8b9e.tar.gz |
cov: ensure buffer is initialized
Diffstat (limited to 'lib/config')
-rw-r--r-- | lib/config/config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/config/config.c b/lib/config/config.c index 409555096..485063a3d 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -1141,6 +1141,8 @@ int config_def_check(struct cft_check_handle *handle) * sections and settings with full path as a key. * If section name is variable, use '#' as a substitute. */ + *vp = 0; + *rp = 0; if (!handle->cmd->cft_def_hash) { if (!(handle->cmd->cft_def_hash = dm_hash_create(60))) { log_error("Failed to create configuration definition hash."); |