1
0
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:
Zdenek Kabelac 2011-09-25 19:41:27 +00:00
parent 347e1afd53
commit 5ce39c67e5

View File

@ -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;