diff options
| author | 2013-05-30 23:29:26 -0400 | |
|---|---|---|
| committer | 2013-05-31 12:00:22 +0200 | |
| commit | 891cc8046e1cb2adc8f0bdffaed1733be7b8076c (patch) | |
| tree | 61de73cc00ae9e557076a5a1cd0544a5a925ec0d | |
| parent | 42404434efe47d3d44e5e3c4c19c7c0034d2b844 (diff) | |
| download | libimobiledevice-891cc8046e1cb2adc8f0bdffaed1733be7b8076c.tar.gz libimobiledevice-891cc8046e1cb2adc8f0bdffaed1733be7b8076c.tar.bz2 | |
cython: Initialize some pointers to NULL
| -rw-r--r-- | cython/afc.pxi | 8 |
1 files changed, 4 insertions, 4 deletions
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): | |||
| 182 | cpdef list get_device_info(self): | 182 | cpdef list get_device_info(self): |
| 183 | cdef: | 183 | cdef: |
| 184 | afc_error_t err | 184 | afc_error_t err |
| 185 | char** infos | 185 | char** infos = NULL |
| 186 | bytes info | 186 | bytes info |
| 187 | int i = 0 | 187 | int i = 0 |
| 188 | list result = [] | 188 | list result = [] |
| @@ -205,7 +205,7 @@ cdef class AfcClient(BaseService): | |||
| 205 | cpdef list read_directory(self, bytes directory): | 205 | cpdef list read_directory(self, bytes directory): |
| 206 | cdef: | 206 | cdef: |
| 207 | afc_error_t err | 207 | afc_error_t err |
| 208 | char** dir_list | 208 | char** dir_list = NULL |
| 209 | bytes f | 209 | bytes f |
| 210 | int i = 0 | 210 | int i = 0 |
| 211 | list result = [] | 211 | list result = [] |
| @@ -253,10 +253,10 @@ cdef class AfcClient(BaseService): | |||
| 253 | 253 | ||
| 254 | return f | 254 | return f |
| 255 | 255 | ||
| 256 | cpdef get_file_info(self, bytes path): | 256 | cpdef list get_file_info(self, bytes path): |
| 257 | cdef: | 257 | cdef: |
| 258 | list result = [] | 258 | list result = [] |
| 259 | char** c_result | 259 | char** c_result = NULL |
| 260 | int i = 0 | 260 | int i = 0 |
| 261 | bytes info | 261 | bytes info |
| 262 | try: | 262 | try: |
