From 5ce39c67e54285d29594269f8cc484f2ea54a56f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 25 Sep 2011 19:41:27 +0000 Subject: [PATCH] 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. --- libdm/libdm-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/libdm-config.c b/libdm/libdm-config.c index 20944c98a..975fc96c8 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;