diff options
Diffstat (limited to 'content/fetch.c')
-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, |