The warning spew on general Pyrex-generated C code is heavy enough that
I didn't spot the uninitialized-variable warnings in these files. Fixed
the genuine (and possibly nasty) bugs.
cdef int len
cdef PyObject *obj
cdef int fd
cdef int len
cdef PyObject *obj
cdef int fd
- buf = PyString_FromStringAndSize(NULL, len)
+ buf = PyString_FromStringAndSize(NULL, size)
p = PyString_AS_STRING(buf)
len = fdpass_recv(_getfd(sock), &fd, p, size)
if len < 0:
p = PyString_AS_STRING(buf)
len = fdpass_recv(_getfd(sock), &fd, p, size)
if len < 0:
def match(char *p, char *s, prefixp = False):
cdef unsigned f
def match(char *p, char *s, prefixp = False):
cdef unsigned f
if prefixp:
f = f | STRF_PREFIX
return _tobool(str_matchx(p, s, f))
if prefixp:
f = f | STRF_PREFIX
return _tobool(str_matchx(p, s, f))