Explorar el Código

Merge pull request #3663 from ThomasWaldmann/fix-compiler-warning

make the C compiler happy, fixes #3490
TW hace 7 años
padre
commit
b862c15691
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/borg/crypto/low_level.pyx

+ 2 - 2
src/borg/crypto/low_level.pyx

@@ -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