Skip to content

Commit d87d030

Browse files
committed
Fix. fnmatch nomatch if callback returns nothing
1 parent a2cacb8 commit d87d030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lceasy.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ static int lcurl_easy_set_DEBUGFUNCTION(lua_State *L){
11511151
static int lcurl_match_callback(void *arg, const char *pattern, const char *string) {
11521152
lcurl_easy_t *p = arg;
11531153
lua_State *L = p->L;
1154-
int ret = CURL_FNMATCHFUNC_MATCH;
1154+
int ret = CURL_FNMATCHFUNC_NOMATCH;
11551155
int top = lua_gettop(L);
11561156
int n = lcurl_util_push_cb(L, &p->match);
11571157

0 commit comments

Comments
 (0)