X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fwildmatch.c;h=2a40f53764d8ca61ce6d50af1d8bef8b73ad9d34;hb=b43635d10f884732f466de394596b31d3779ea7c;hp=8e001e8f5178a99f417dc17582f756c283d3e62b;hpb=1366476d8b3de400322ebadbb9935c38ef818ce1;p=libucw.git diff --git a/lib/wildmatch.c b/lib/wildmatch.c index 8e001e8f..2a40f537 100644 --- a/lib/wildmatch.c +++ b/lib/wildmatch.c @@ -4,10 +4,13 @@ * Traditional NFA -> DFA method with on-the-fly DFA construction. * * (c) 1999 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" -#include "lib/pools.h" +#include "lib/mempool.h" #include "lib/wildmatch.h" #include @@ -103,8 +106,7 @@ wp_compile(byte *p, struct mempool *pool) if (strlen(p) >= MAX_STATES) /* Too long */ return NULL; - w = mp_alloc(pool, sizeof(*w)); - bzero(w, sizeof(*w)); + w = mp_alloc_zero(pool, sizeof(*w)); w->pool = pool; for(i=1; *p; p++) {