summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-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 ""