summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-config.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-09-25 19:41:27 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-09-25 19:41:27 +0000
commit5ce39c67e54285d29594269f8cc484f2ea54a56f (patch)
treebf791b578d9927c745db6047c0ac7d702247a876 /libdm/libdm-config.c
parent347e1afd53634cda86c4a2e27c9d81c408f4db49 (diff)
downloadlvm2-5ce39c67e54285d29594269f8cc484f2ea54a56f.tar.gz
lvm2-5ce39c67e54285d29594269f8cc484f2ea54a56f.tar.xz
lvm2-5ce39c67e54285d29594269f8cc484f2ea54a56f.zip
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.
Diffstat (limited to 'libdm/libdm-config.c')
-rw-r--r--libdm/libdm-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c
index 20944c98..975fc96c 100644
--- a/libdm/libdm-config.c
+++ b/libdm/libdm-config.c
@@ -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;