Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[uri] Allow use of relative URIs when calling churi()
  • Loading branch information
Michael Brown committed Feb 16, 2009
1 parent 7bc4093 commit 349868b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/cwuri.c
Expand Up @@ -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;
}

0 comments on commit 349868b

Please sign in to comment.