summaryrefslogtreecommitdiff
path: root/xpp/perl_modules/Dahdi/Hardware/USB.pm
diff options
context:
space:
mode:
Diffstat (limited to 'xpp/perl_modules/Dahdi/Hardware/USB.pm')
-rw-r--r--xpp/perl_modules/Dahdi/Hardware/USB.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/perl_modules/Dahdi/Hardware/USB.pm b/xpp/perl_modules/Dahdi/Hardware/USB.pm
index d73bdbe..edc0f4c 100644
--- a/xpp/perl_modules/Dahdi/Hardware/USB.pm
+++ b/xpp/perl_modules/Dahdi/Hardware/USB.pm
@@ -123,7 +123,7 @@ sub _get_attr($) {
}
sub _get_attr_optional($$) {
- my ($attr_file, $def_val) = $@;
+ my ($attr_file, $def_val) = @_;
eval {return _get_attr($attr_file)};