projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ece197
)
Fix bug: logic for ->URI wasn't handling no-error case right.
author
Chris Hanson
<org/chris-hanson/cph>
Mon, 14 Jun 2010 03:52:52 +0000
(20:52 -0700)
committer
Chris Hanson
<org/chris-hanson/cph>
Mon, 14 Jun 2010 03:52:52 +0000
(20:52 -0700)
src/runtime/url.scm
patch
|
blob
|
history
diff --git
a/src/runtime/url.scm
b/src/runtime/url.scm
index b24c62ed4b2af499e42f98383dfe31d8cf724ebe..b4682f2681ce4fddad29fb09302cfe451a6712b1 100644
(file)
--- a/
src/runtime/url.scm
+++ b/
src/runtime/url.scm
@@
-332,9
+332,11
@@
USA.
(let* ((do-parse
(lambda (string)
(let ((v (*parse-string parser string)))
- (if (and (not v) caller)
- (error:bad-range-argument object caller))
- (vector-ref v 0))))
+ (if v
+ (vector-ref v 0)
+ (begin
+ (if caller (error:bad-range-argument object caller))
+ #f)))))
(do-string
(lambda (string)
(or (hash-table/get interned-uris string #f)