liquid_feedback_frontend

diff lib/mldap/mldap.c @ 1634:96336212e94d

Fixed mldap for Lua 5.3
author bsw
date Mon Feb 08 15:45:10 2021 +0100 (2021-02-08)
parents 58f48a8a202a
children 8e4fed876772
line diff
     1.1 --- a/lib/mldap/mldap.c	Mon Feb 08 15:44:21 2021 +0100
     1.2 +++ b/lib/mldap/mldap.c	Mon Feb 08 15:45:10 2021 +0100
     1.3 @@ -340,7 +340,7 @@
     1.4    lua_pop(L, 1);  // removes stack element 4
     1.5    filter = mldap_get_named_string_arg(L, 2, "filter", false);  // pushed to 4
     1.6    lua_getfield(L, 2, "attrs");  // pushed to 5
     1.7 -  nattrs = lua_len(L, -1);
     1.8 +  nattrs = luaL_len(L, -1);
     1.9    attrs = calloc(nattrs + 1, sizeof(char *));  // memory allocation, +1 for terminating NULL
    1.10    if (!attrs) return luaL_error(L, "Memory allocation error in C function 'mldap_queryconn'");
    1.11    for (attr_idx=0; attr_idx<nattrs; attr_idx++) {

Impressum / About Us