This commit is contained in:
Kovid Goyal 2024-06-04 11:02:47 +05:30
parent 6bd8c71e30
commit f17a5934e2
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -188,7 +188,7 @@ func run_set_loop(opts *Options, args []string) (err error) {
to_process := make([]*Input, len(args))
defer func() {
for _, i := range inputs {
if i.src != nil {
if i != nil && i.src != nil {
rc, ok := i.src.(io.Closer)
if ok {
rc.Close()