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:
Bart Van Assche
2019-03-20 02:07:16 +00:00
parent eb83c6971b
commit da8b868a31
@@ -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() &&