Fix. fnmatch nomatch if callback returns nothing

This commit is contained in:
Alexey Melnichuk 2017-07-12 17:24:10 +03:00
parent a2cacb8dd0
commit d87d030900

View File

@ -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);