summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-13 18:35:23 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-13 18:35:23 -0800
commitfddadb2df7980fe86deabb0bfa27189d52479a0e (patch)
treeb327fa2afdcb8d22bf7e34c0c6a3bd95884b7a12
parent8d6714e356bf64016f5be55f5c4b9bb0a71b5a3c (diff)
parent3514265febf44394677b7ad06f2824b21e33b51d (diff)
downloadvyatta-cfg-fddadb2df7980fe86deabb0bfa27189d52479a0e.tar.gz
vyatta-cfg-fddadb2df7980fe86deabb0bfa27189d52479a0e.zip
Merge branch 'master' of phuket.vyatta.com:/usr/local/git/vyatta-cfg
-rw-r--r--scripts/VyattaConfigDOMTree.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/VyattaConfigDOMTree.pm b/scripts/VyattaConfigDOMTree.pm
index d951202..86aabf8 100644
--- a/scripts/VyattaConfigDOMTree.pm
+++ b/scripts/VyattaConfigDOMTree.pm
@@ -307,7 +307,7 @@ sub getSubNodesNumber {
my @subs = $node->getSubNodes();
- if(defined @subs) {
+ if(@subs) {
$ret = $#subs + 1;
}
}