[uri] Allow use of relative URIs when calling churi()
authorMichael Brown <mcb30@etherboot.org>
Mon, 16 Feb 2009 04:56:55 +0000 (04:56 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 16 Feb 2009 04:56:55 +0000 (04:56 +0000)
src/core/cwuri.c

index c7f0138..81fd900 100644 (file)
@@ -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;
 }