From 891cc8046e1cb2adc8f0bdffaed1733be7b8076c Mon Sep 17 00:00:00 2001 From: Dawn K. Isabel Date: Thu, 30 May 2013 23:29:26 -0400 Subject: cython: Initialize some pointers to NULL --- cython/afc.pxi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cython') diff --git a/cython/afc.pxi b/cython/afc.pxi index 1ca4378..3e6f6dd 100644 --- a/cython/afc.pxi +++ b/cython/afc.pxi @@ -182,7 +182,7 @@ cdef class AfcClient(BaseService): cpdef list get_device_info(self): cdef: afc_error_t err - char** infos + char** infos = NULL bytes info int i = 0 list result = [] @@ -205,7 +205,7 @@ cdef class AfcClient(BaseService): cpdef list read_directory(self, bytes directory): cdef: afc_error_t err - char** dir_list + char** dir_list = NULL bytes f int i = 0 list result = [] @@ -253,10 +253,10 @@ cdef class AfcClient(BaseService): return f - cpdef get_file_info(self, bytes path): + cpdef list get_file_info(self, bytes path): cdef: list result = [] - char** c_result + char** c_result = NULL int i = 0 bytes info try: -- cgit v1.1-32-gdbae