From: Gleb C. <lna...@ya...> - 2024-11-27 08:33:44
|
Commit: 297034d GitHub URL: https://github.com/SCST-project/scst/commit/297034d884881fe3d77cbb6bf5d95deab5cb5a65 Author: m.chernobrov Date: 2024-11-27T11:33:20+03:00 Log Message: ----------- scstadmin: Fix scstadmin -list_sessions error msg in out cmd In out of "scstadmin -list_sessions" cmd occurs error "Use of uninitialized value in numeric lt (<) at /usr/local/sbin/scstadmin line 3679". Modified Paths: -------------- scstadmin/scstadmin.sysfs/scstadmin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) =================================================================== diff --git a/scstadmin/scstadmin.sysfs/scstadmin b/scstadmin/scstadmin.sysfs/scstadmin index 84e539a..cdb54ca 100755 --- a/scstadmin/scstadmin.sysfs/scstadmin +++ b/scstadmin/scstadmin.sysfs/scstadmin @@ -3683,7 +3683,7 @@ sub listAttributes { next; } - $l_value = length($value) if ($l_value < length($value)); + $l_value = length($value) if (defined($value) && $l_value < length($value)); } } |