fdutils.pyx, str.pyx: Fix some stupid bugs.
[mLib-python] / str.pyx
diff --git a/str.pyx b/str.pyx
index a87f12c..a48b5f2 100644 (file)
--- a/str.pyx
+++ b/str.pyx
@@ -78,6 +78,8 @@ def split(char *p, int n = -1, quotep = False):
 
 def match(char *p, char *s, prefixp = False):
   cdef unsigned f
+
+  f = 0
   if prefixp:
     f = f | STRF_PREFIX
   return _tobool(str_matchx(p, s, f))