From d87d030900bd80c244720062b6c7ed51573359f0 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 12 Jul 2017 17:24:10 +0300 Subject: [PATCH] Fix. fnmatch nomatch if callback returns nothing --- src/lceasy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lceasy.c b/src/lceasy.c index e422e33..d20942d 100644 --- a/src/lceasy.c +++ b/src/lceasy.c @@ -1151,7 +1151,7 @@ static int lcurl_easy_set_DEBUGFUNCTION(lua_State *L){ static int lcurl_match_callback(void *arg, const char *pattern, const char *string) { lcurl_easy_t *p = arg; lua_State *L = p->L; - int ret = CURL_FNMATCHFUNC_MATCH; + int ret = CURL_FNMATCHFUNC_NOMATCH; int top = lua_gettop(L); int n = lcurl_util_push_cb(L, &p->match);