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:
Bart Van Assche
2013-11-13 21:06:46 +00:00
parent dcc7ad8537
commit 573b0e5dcb

View File

@@ -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 ||