Avoid a couple of strlen calls.

svn path=/trunk/netsurf/; revision=13005
This commit is contained in:
Michael Drake 2011-10-08 12:26:10 +00:00
parent 265bfdd323
commit c876a37a5f
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ css_error nscss_resolve_url(void *pw, const char *base,
/* Intern it */
lerror = lwc_intern_string(nsurl_access(nsabs),
strlen(nsurl_access(nsabs)), abs);
nsurl_length(nsabs), abs);
if (lerror != lwc_error_ok) {
*abs = NULL;
nsurl_unref(nsabs);

View File

@ -1487,7 +1487,7 @@ css_error node_presentational_hint(void *pw, void *node,
lwc_error lerror;
lerror = lwc_intern_string(nsurl_access(url),
strlen(nsurl_access(url)), &iurl);
nsurl_length(url), &iurl);
nsurl_unref(url);