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>
Tue, 9 Jul 2019 03:28:20 +0000 (23:28 -0400)
src/runtime/host-adapter.scm

index 41f5c7b8cce751c16f36c1e38564ec7256660920..8aed7d510730d26034a5048ee052b54de345ba09 100644 (file)
@@ -82,8 +82,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)