mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
scstadmin: Fix a recently enabled warning
Avoid that the following warning is reported when restoring a config file that refers to a user space handler: Use of uninitialized value $value in scalar chomp at /usr/local/share/perl5/SCST/SCST.pm line 2688. Reported-by: Rob Turk <robtu@rtist.nl> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2685,6 +2685,7 @@ sub deviceAttributes {
|
||||
|
||||
my ($value, $is_key) = split("\n", _sysread($io) , 2);
|
||||
close $io;
|
||||
$value = "" if (!defined($value));
|
||||
chomp $value;
|
||||
|
||||
$is_key = new_sysfs_interface() &&
|
||||
|
||||
Reference in New Issue
Block a user