mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Replace test for NULL of root->child with test for NULL l
It's 100% equivalent test - since it always happen for the first iteration. But the check for 'l' is understandable with analyzers - since analyzer is not smart enough to deduce connection between root->child == NULL.
This commit is contained in:
parent
347e1afd53
commit
5ce39c67e5
@ -557,7 +557,7 @@ static struct dm_config_node *_section(struct parser *p)
|
||||
if (!(n = _section(p)))
|
||||
return_NULL;
|
||||
|
||||
if (!root->child)
|
||||
if (!l)
|
||||
root->child = n;
|
||||
else
|
||||
l->sib = n;
|
||||
|
Loading…
Reference in New Issue
Block a user