Fix. fnmatch nomatch if callback returns nothing
This commit is contained in:
parent
a2cacb8dd0
commit
d87d030900
@ -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) {
|
static int lcurl_match_callback(void *arg, const char *pattern, const char *string) {
|
||||||
lcurl_easy_t *p = arg;
|
lcurl_easy_t *p = arg;
|
||||||
lua_State *L = p->L;
|
lua_State *L = p->L;
|
||||||
int ret = CURL_FNMATCHFUNC_MATCH;
|
int ret = CURL_FNMATCHFUNC_NOMATCH;
|
||||||
int top = lua_gettop(L);
|
int top = lua_gettop(L);
|
||||||
int n = lcurl_util_push_cb(L, &p->match);
|
int n = lcurl_util_push_cb(L, &p->match);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user