scrcaps: fix bad check for unsupported scrcap presence
This commit is contained in:
parent
8366e4a29c
commit
3ea89f1674
@ -103,7 +103,7 @@ func (ltc *loadTupContent) Validate() error {
|
||||
return fmt.Errorf("scrsecs/scrcaps length mismatch")
|
||||
}
|
||||
|
||||
if !(len(ltc.Scrcaps) == 0 || ltc.Scrcaps[0] == "") {
|
||||
if !(len(ltc.Scrcaps) == 0 || (len(ltc.Scrcaps) == 1 && ltc.Scrcaps[0] == "")) {
|
||||
return errors.New("unsupported use of strcaps")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user