davemds pushed a commit to branch master.

http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=2991a6683efd743d024f4afaf8c5ad6db018a758

commit 2991a6683efd743d024f4afaf8c5ad6db018a758
Author: Dave Andreoli <d...@gurumeditation.it>
Date:   Fri Aug 17 10:46:00 2018 +0200

    Fix elm.Image.file.__get__
    
    This is to hide a behaviour changes in elm, quite a corner case, but
    spotted by our tests.
    
    If you do a file_get before a file_set, elm is nomore nullifying the
    pointers, thus we try to ctouni our garbage. Just initialize well
    our vars
---
 efl/elementary/image.pxi | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/efl/elementary/image.pxi b/efl/elementary/image.pxi
index 0e75ae0..d03e982 100644
--- a/efl/elementary/image.pxi
+++ b/efl/elementary/image.pxi
@@ -125,8 +125,8 @@ cdef class Image(Object):
 
         def __get__(self):
             cdef:
-                const char *filename
-                const char *group
+                const char *filename = NULL
+                const char *group = NULL
 
             elm_image_file_get(self.obj, &filename, &group)
             return (_ctouni(filename), _ctouni(group))
@@ -140,8 +140,8 @@ cdef class Image(Object):
                 raise RuntimeError("Could not set file.")
     def file_get(self):
         cdef:
-            const char *filename
-            const char *group
+            const char *filename = NULL
+            const char *group = NULL
 
         elm_image_file_get(self.obj, &filename, &group)
         return (_ctouni(filename), _ctouni(group))

-- 


Reply via email to