Avoid a couple of strlen calls.
svn path=/trunk/netsurf/; revision=13005
This commit is contained in:
parent
265bfdd323
commit
c876a37a5f
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue