mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
[project @ 2004-03-21 23:44:53 by jmb]
Add a couple of assertions. svn path=/import/netsurf/; revision=649
This commit is contained in:
parent
7f2d86b2f6
commit
083d96493e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user