Fix screw-up in previous host-adapter change.
authorChris Hanson <org/chris-hanson/cph>
Tue, 9 Jul 2019 03:28:20 +0000 (23:28 -0400)
committerChris Hanson <org/chris-hanson/cph>
Thu, 18 Jul 2019 00:50:54 +0000 (20:50 -0400)
src/runtime/host-adapter.scm

index ede64f56d7077ed6d98f905b4ece6c1b00ac1379..d98c3676f42f9c7efe7bc2e5335fad0bf9f7b764 100644 (file)
@@ -196,8 +196,10 @@ USA.
        (let ((i
               (list-index (lambda (name*) (eq? name* name))
                           names)))
-         (remove-at-index! i names set-names!)
-         (remove-at-index! i (get-vals) set-vals!))))
+         (if i
+             (begin
+               (remove-at-index! i names set-names!)
+               (remove-at-index! i (get-vals) set-vals!))))))
 
     (remove-one 'call-with-values)
     (remove-one 'with-values)