summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir@cohens.org.il>2009-05-31 02:02:26 +0300
committerTzafrir Cohen <tzafrir@cohens.org.il>2009-05-31 02:02:26 +0300
commitee9bf937556617fdcfcb3722975132a306cef0be (patch)
tree8d470f0e3745f25c139061b9d8dcbe886a8fe810
parentf6bbb2c861c5da74414d2db532bf1569eeaa56ad (diff)
fix truncation of parsed config to '0'
In some cases after a reload the parsed configuration would have been reduced to a mere '0'. Aparantly again because a reference was treated as a scalar.
-rw-r--r--lib/Asterisk/config.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Asterisk/config.pm b/lib/Asterisk/config.pm
index 1c88311..1943691 100644
--- a/lib/Asterisk/config.pm
+++ b/lib/Asterisk/config.pm
@@ -228,7 +228,7 @@ my @resource_list = <DATA>;
chomp(@resource_list);
# save to parsed_conf
-my $parsed_conf = &_parse(\@resource_list,$self->{comment_flag});
+my ($parsed_conf,$conf_chunk_ignored) = &_parse(\@resource_list,$self->{comment_flag});
$self->{parsed_conf} = $parsed_conf;
# save to resource_list