diff options
-rw-r--r-- | lib/mime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mime.c b/lib/mime.c index c337a35c9..c3c370891 100644 --- a/lib/mime.c +++ b/lib/mime.c @@ -1437,7 +1437,8 @@ CURLcode Curl_mime_set_subparts(curl_mimepart *part, while(root->parent && root->parent->parent) root = root->parent->parent; if(subparts == root) { - failf(part->easy, "Can't add itself as a subpart!"); + if(part->easy) + failf(part->easy, "Can't add itself as a subpart!"); return CURLE_BAD_FUNCTION_ARGUMENT; } } |