mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
make nsurl_access() not assert with being passed a NULL url as it is assumed elsewhere this will never fail.
This commit is contained in:
parent
966fb9f215
commit
7d83151d1a
@ -1564,7 +1564,9 @@ bool nsurl_has_component(const nsurl *url, nsurl_component part)
|
||||
/* exported interface, documented in nsurl.h */
|
||||
const char *nsurl_access(const nsurl *url)
|
||||
{
|
||||
assert(url != NULL);
|
||||
if (url == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return url->string;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user