summaryrefslogtreecommitdiff
path: root/utils/nsurl.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nsurl.c')
-rw-r--r--utils/nsurl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c
index 8431916be..8d53be84f 100644
--- a/utils/nsurl.c
+++ b/utils/nsurl.c
@@ -2004,6 +2004,8 @@ nserror nsurl_defragment(const nsurl *url, nsurl **no_frag)
size_t length;
char *pos;
+ assert(url != NULL);
+
/* check for source url having no fragment already */
if (url->components.fragment == NULL) {
*no_frag = (nsurl *)url;
@@ -2226,6 +2228,8 @@ nserror nsurl_nice(const nsurl *url, char **result, bool remove_extensions)
bool match;
char *name;
+ assert(url != NULL);
+
*result = 0;
/* extract the last component of the path, if possible */