fix for mocked getnext method when first IID is zero

This commit is contained in:
Eric A. Miller
2013-02-08 22:19:46 -05:00
parent d53152858c
commit 5d443fd1be

View File

@@ -280,7 +280,9 @@ sub mock_getnext {
# with a fully qualified leaf and potentially a partial
( $leaf, $iid ) = @{$vars};
$iid ||= 0;
unless (defined $iid) {
$iid = -1;
}
my $new_iid = $iid;
my $val = $EMPTY;
my $data = $c_data->{$leaf};