summaryrefslogtreecommitdiff
path: root/lib/wildcard.c
diff options
context:
space:
mode:
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;