mirror of https://github.com/borgbackup/borg.git
make the C compiler happy, fixes #3490
fix a false positive compiler warning about olen being referenced before assignment (which is not true, see comments in #3490).
This commit is contained in:
parent
8a4d32a4ae
commit
b2ffb8bd65
|
@ -729,7 +729,7 @@ cdef class AES:
|
|||
cdef Py_buffer idata = ro_buffer(data)
|
||||
cdef int ilen = len(data)
|
||||
cdef int offset
|
||||
cdef int olen
|
||||
cdef int olen = 0
|
||||
cdef unsigned char *odata = <unsigned char *>PyMem_Malloc(ilen + self.cipher_blk_len)
|
||||
if not odata:
|
||||
raise MemoryError
|
||||
|
@ -753,7 +753,7 @@ cdef class AES:
|
|||
cdef Py_buffer idata = ro_buffer(data)
|
||||
cdef int ilen = len(data)
|
||||
cdef int offset
|
||||
cdef int olen
|
||||
cdef int olen = 0
|
||||
cdef unsigned char *odata = <unsigned char *>PyMem_Malloc(ilen + self.cipher_blk_len)
|
||||
if not odata:
|
||||
raise MemoryError
|
||||
|
|
Loading…
Reference in New Issue