]> mj.ucw.cz Git - libucw.git/blobdiff - lib/wildmatch.c
Moved shell script support commands to lib/shell.
[libucw.git] / lib / wildmatch.c
index 8e001e8f5178a99f417dc17582f756c283d3e62b..be98a995ded83ec068939603a3691a658d749b10 100644 (file)
@@ -4,6 +4,9 @@
  *     Traditional NFA -> DFA method with on-the-fly DFA construction.
  *
  *     (c) 1999 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
@@ -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++)
     {