X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fstr2filter.c;h=f6ae9bf5b9dae2c1ebfdc51bd84d12b107c17b33;hb=2c4b2b5566e14bbda986be58733d16c94f8b5e35;hp=f8b9cfcdf3a6d8e20638a600c70aa5de673aa2fb;hpb=d611a4b49a00238ed32ae84c68f27c6a0ef2273a;p=openldap
diff --git a/servers/slapd/str2filter.c b/servers/slapd/str2filter.c
index f8b9cfcdf3..f6ae9bf5b9 100644
--- a/servers/slapd/str2filter.c
+++ b/servers/slapd/str2filter.c
@@ -2,7 +2,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * Copyright 1998-2004 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -33,14 +33,7 @@
#include
#include "slap.h"
-#include
-#if 0 /* unused */
-static char *find_matching_paren( const char *s );
-#endif /* unused */
-static Filter *str2list( const char *str, long unsigned int ftype);
-static Filter *str2simple( const char *str);
-static int str2subvals( const char *val, Filter *f);
Filter *
str2filter_x( Operation *op, const char *str )
@@ -81,7 +74,9 @@ Filter *
str2filter( const char *str )
{
Operation op = {0};
+ Opheader ohdr = {0};
+ op.o_hdr = &ohdr;
op.o_tmpmemctx = NULL;
op.o_tmpmfuncs = &ch_mfuncs;