diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-03-21 23:44:53 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-03-21 23:44:53 +0000 |
commit | 083d96493ef28b09cc739c0c8bf836a134d26d1e (patch) | |
tree | 82be11a467ed17804baa37287d5d98a8664bfca6 /content | |
parent | 7f2d86b2f6eeb51948978a914ad6062481b7db39 (diff) | |
download | netsurf-083d96493ef28b09cc739c0c8bf836a134d26d1e.tar.gz netsurf-083d96493ef28b09cc739c0c8bf836a134d26d1e.tar.bz2 |
[project @ 2004-03-21 23:44:53 by jmb]
Add a couple of assertions.
svn path=/import/netsurf/; revision=649
Diffstat (limited to 'content')
-rw-r--r-- | content/fetch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/fetch.c b/content/fetch.c index d65186284..eda81d823 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -687,10 +687,12 @@ struct HttpPost *fetch_post_convert(struct form_successful_control *control) mimetype = fetch_mimetype(control->value); #ifdef riscos temp = strrchr(control->value, '.') + 1; + assert(temp); leafname = xcalloc(strlen(temp), sizeof(char)); __unixify_std(temp, leafname, strlen(temp), 0xfff); #else leafname = strrchr(control->value, '/') + 1; + assert(leafname); #endif curl_formadd(&post, &last, CURLFORM_COPYNAME, control->name, |