mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 11:41:26 +00:00
scstadmin: Avoid complaints about passing an undefined value to chomp()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -460,7 +460,7 @@ sub scstAttributes {
|
||||
}
|
||||
|
||||
my $value = <$io>;
|
||||
chomp $value;
|
||||
chomp $value if (defined($value));
|
||||
|
||||
my $is_key = <$io>;
|
||||
$is_key = new_sysfs_interface() && !$is_static ||
|
||||
|
||||
Reference in New Issue
Block a user