summaryrefslogtreecommitdiff
path: root/cython
diff options
context:
space:
mode:
authorDawn K. Isabel <dawn.isabel@gmail.com>2013-05-30 23:29:26 -0400
committerMartin Szulecki <opensuse@sukimashita.com>2013-05-31 12:00:22 +0200
commit891cc8046e1cb2adc8f0bdffaed1733be7b8076c (patch)
tree61de73cc00ae9e557076a5a1cd0544a5a925ec0d /cython
parent42404434efe47d3d44e5e3c4c19c7c0034d2b844 (diff)
downloadlibimobiledevice-891cc8046e1cb2adc8f0bdffaed1733be7b8076c.tar.gz
cython: Initialize some pointers to NULL
Diffstat (limited to 'cython')
-rw-r--r--cython/afc.pxi8
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):
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: