summaryrefslogtreecommitdiff
path: root/content/fetchers/fetch_curl.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-04-07 11:10:55 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-04-07 11:10:55 +0000
commitbbd757c34a15226135ec088f014522712e9adcc2 (patch)
tree2c14147a555da44059b8eaf3d64e8a23341338f0 /content/fetchers/fetch_curl.c
parent65b3dd18e32b7fb70e82bd23899bdb03d89fe028 (diff)
downloadnetsurf-bbd757c34a15226135ec088f014522712e9adcc2.tar.gz
netsurf-bbd757c34a15226135ec088f014522712e9adcc2.tar.bz2
Fix fetch_curl_post_convert() for filename_from_path() returning NULL.
svn path=/trunk/netsurf/; revision=10265
Diffstat (limited to 'content/fetchers/fetch_curl.c')
-rw-r--r--content/fetchers/fetch_curl.c3
1 files changed, 3 insertions, 0 deletions
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 ""