summaryrefslogtreecommitdiff
path: root/lib/wildcard.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-24 08:19:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-24 08:19:54 +0200
commit5c39ccd83f051de3fc803584c1405b4fb5f9f899 (patch)
treed2678bd637914e34a3eef4c8961ded360ac55c68 /lib/wildcard.c
parenta7df35ce2130a99f26c4c8315ce46bf10804280e (diff)
downloadcurl-5c39ccd83f051de3fc803584c1405b4fb5f9f899.tar.gz
Revert "ftplistparser: keep state between invokes"
This reverts commit abbc8457d85aca74b7cfda1d394b0844932b2934. Caused fuzzer problems on travis not seen when this was a PR!
Diffstat (limited to 'lib/wildcard.c')
-rw-r--r--lib/wildcard.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/wildcard.c b/lib/wildcard.c
index 8ba0989b4..cb88ab72f 100644
--- a/lib/wildcard.c
+++ b/lib/wildcard.c
@@ -30,15 +30,9 @@
#include "curl_memory.h"
#include "memdebug.h"
-static void fileinfo_dtor(void *user, void *element)
-{
- (void)user;
- Curl_fileinfo_cleanup(element);
-}
-
CURLcode Curl_wildcard_init(struct WildcardData *wc)
{
- Curl_llist_init(&wc->filelist, fileinfo_dtor);
+ Curl_llist_init(&wc->filelist, Curl_fileinfo_dtor);
wc->state = CURLWC_INIT;
return CURLE_OK;