From 3514265febf44394677b7ad06f2824b21e33b51d Mon Sep 17 00:00:00 2001
From: Marat Nepomnyashy <marat@eng-158.vyatta.com>
Date: Thu, 13 Dec 2007 17:43:33 -0800
Subject: Removed 'defined' when checking array @subs to avoid deprecated
 warning when running 'perl -w'.

---
 scripts/VyattaConfigDOMTree.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 	    }
 	}
-- 
cgit v1.2.3