From 083d96493ef28b09cc739c0c8bf836a134d26d1e Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 21 Mar 2004 23:44:53 +0000 Subject: [project @ 2004-03-21 23:44:53 by jmb] Add a couple of assertions. svn path=/import/netsurf/; revision=649 --- content/fetch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content/fetch.c') 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, -- cgit v1.2.3