mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-25 16:22:53 -05:00
fix malformed test and var initialization
This commit is contained in:
parent
559397c44a
commit
9300a9415f
1 changed files with 3 additions and 3 deletions
|
|
@ -209,8 +209,8 @@ slap_set_filter (SLAP_SET_GATHER gatherer,
|
||||||
SetCookie *cp, struct berval *fbv,
|
SetCookie *cp, struct berval *fbv,
|
||||||
struct berval *user, struct berval *this, BerVarray *results)
|
struct berval *user, struct berval *this, BerVarray *results)
|
||||||
{
|
{
|
||||||
#define IS_SET(x) ( (long)(x) >= 256 )
|
#define IS_SET(x) ( (unsigned long)(x) >= 256 )
|
||||||
#define IS_OP(x) ( (long)(x) < 256 )
|
#define IS_OP(x) ( (unsigned long)(x) < 256 )
|
||||||
#define SF_ERROR(x) do { rc = -1; goto _error; } while (0)
|
#define SF_ERROR(x) do { rc = -1; goto _error; } while (0)
|
||||||
#define SF_TOP() ( (BerVarray)( (stp < 0) ? 0 : stack[stp] ) )
|
#define SF_TOP() ( (BerVarray)( (stp < 0) ? 0 : stack[stp] ) )
|
||||||
#define SF_POP() ( (BerVarray)( (stp < 0) ? 0 : stack[stp--] ) )
|
#define SF_POP() ( (BerVarray)( (stp < 0) ? 0 : stack[stp--] ) )
|
||||||
|
|
@ -220,7 +220,7 @@ slap_set_filter (SLAP_SET_GATHER gatherer,
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
BerVarray set, lset;
|
BerVarray set, lset;
|
||||||
BerVarray stack[64];
|
BerVarray stack[64] = { 0 };
|
||||||
int len, op, rc, stp;
|
int len, op, rc, stp;
|
||||||
char c, *filter = fbv->bv_val;
|
char c, *filter = fbv->bv_val;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue