From bbd757c34a15226135ec088f014522712e9adcc2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 7 Apr 2010 11:10:55 +0000 Subject: Fix fetch_curl_post_convert() for filename_from_path() returning NULL. svn path=/trunk/netsurf/; revision=10265 --- content/fetchers/fetch_curl.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content') diff --git a/content/fetchers/fetch_curl.c b/content/fetchers/fetch_curl.c index e5ff6bf71..dd9f3ca17 100644 --- a/content/fetchers/fetch_curl.c +++ b/content/fetchers/fetch_curl.c @@ -1235,6 +1235,9 @@ fetch_curl_post_convert(struct fetch_multipart_data *control) leafname = filename_from_path(control->value); + if (leafname == NULL) + continue; + /* We have to special case filenames of "", so curl * a) actually attempts the fetch and * b) doesn't attempt to open the file "" -- cgit v1.2.3