mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
Ignore empty strings in config files.
This commit is contained in:
parent
12ccdb25e4
commit
81b4308bde
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.06 -
|
Version 2.02.06 -
|
||||||
=================================
|
=================================
|
||||||
|
Ignore empty strings in config files.
|
||||||
Require non-zero regionsize and document parameter on lvcreate man page.
|
Require non-zero regionsize and document parameter on lvcreate man page.
|
||||||
Invalidate cache if composition of VG changed externally.
|
Invalidate cache if composition of VG changed externally.
|
||||||
|
|
||||||
|
@ -752,8 +752,8 @@ const char *find_config_str(const struct config_node *cn,
|
|||||||
{
|
{
|
||||||
const struct config_node *n = find_config_node(cn, path);
|
const struct config_node *n = find_config_node(cn, path);
|
||||||
|
|
||||||
if (n && n->v->type == CFG_STRING) {
|
/* Empty strings are ignored */
|
||||||
if (*n->v->v.str)
|
if ((n && n->v->type == CFG_STRING) && (*n->v->v.str))
|
||||||
log_very_verbose("Setting %s to %s", path, n->v->v.str);
|
log_very_verbose("Setting %s to %s", path, n->v->v.str);
|
||||||
return n->v->v.str;
|
return n->v->v.str;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user