diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-05 12:15:27 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-05 12:15:27 +0000 |
commit | 7d0b91caa7c331d680a57b810cf6eb0e0899bdde (patch) | |
tree | 440814ba5ffc15f5f1e6e21eff1e451d2d335c44 /utils | |
parent | 921e9959e65014f43ded14a7376b983c64bd8532 (diff) | |
download | netsurf-7d0b91caa7c331d680a57b810cf6eb0e0899bdde.tar.gz netsurf-7d0b91caa7c331d680a57b810cf6eb0e0899bdde.tar.bz2 |
Make sure the fragment remover sets the nsurl to NULL on failure.
svn path=/trunk/netsurf/; revision=12956
Diffstat (limited to 'utils')
-rw-r--r-- | utils/nsurl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c index c29340006..46a172156 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -1698,6 +1698,7 @@ nserror nsurl_defragment(const nsurl *url, nsurl **no_frag) if (nsurl_get(url, NSURL_COMPLETE, &((*no_frag)->string), &((*no_frag)->length)) != NSERROR_OK) { free(*no_frag); + *no_frag = NULL; return NSERROR_NOMEM; } |