http://git.etherboot.org
/
people
/
lynusvaz
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bc4093
)
[uri] Allow use of relative URIs when calling churi()
author
Michael Brown
<mcb30@etherboot.org>
Mon, 16 Feb 2009 04:56:55 +0000
(
04:56
+0000)
committer
Michael Brown
<mcb30@etherboot.org>
Mon, 16 Feb 2009 04:56:55 +0000
(
04:56
+0000)
src/core/cwuri.c
patch
|
blob
|
history
diff --git
a/src/core/cwuri.c
b/src/core/cwuri.c
index
c7f0138
..
81fd900
100644
(file)
--- a/
src/core/cwuri.c
+++ b/
src/core/cwuri.c
@@
-36,6
+36,9
@@
struct uri *cwuri = NULL;
* @v uri New working URI, or NULL
*/
void churi ( struct uri *uri ) {
+ struct uri *new_uri;
+
+ new_uri = resolve_uri ( cwuri, uri );
uri_put ( cwuri );
- cwuri =
uri_get ( uri )
;
+ cwuri =
new_uri
;
}