summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarat Nepomnyashy <marat@eng-158.vyatta.com>2007-12-13 17:43:33 -0800
committerMarat Nepomnyashy <marat@eng-158.vyatta.com>2007-12-13 17:43:33 -0800
commit3514265febf44394677b7ad06f2824b21e33b51d (patch)
treed9b8cefde5526bfaef79cf70b7e2a6bc761af4cb /scripts
parent96b548691d857e331ebcb0313ff94bd40127b795 (diff)
downloadvyatta-cfg-3514265febf44394677b7ad06f2824b21e33b51d.tar.gz
vyatta-cfg-3514265febf44394677b7ad06f2824b21e33b51d.zip
Removed 'defined' when checking array @subs to avoid deprecated warning when running 'perl -w'.
Diffstat (limited to 'scripts')
-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;
}
}