summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2016-03-05 06:50:34 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2016-03-05 06:54:00 +0530
commitb613a3d63ac510679c6383308f672c4a993b2fea (patch)
tree8d5671ec99ba6e3711893a5df36ff125bd350fcb
parent89a7e471d155dedb14f23dbb85e2178497620864 (diff)
atspi intf: image - fix compilation warnings after eo4 migration changes
====== CC libelementary_la-elm_interface_atspi_value.lo elm_interface_atspi_image.c: In function '_elm_interface_atspi_image_description_set': elm_interface_atspi_image.c:36:9: warning: 'old_descr' may be used uninitialized in this function [-Wmaybe-uninitialized] eina_stringshare_del(old_descr); ^ ======
-rw-r--r--src/lib/elm_interface_atspi_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_interface_atspi_image.c b/src/lib/elm_interface_atspi_image.c
index a9a253db0..7ee1e97ca 100644
--- a/src/lib/elm_interface_atspi_image.c
+++ b/src/lib/elm_interface_atspi_image.c
@@ -30,8 +30,8 @@ _elm_interface_atspi_image_description_set(Eo *obj, void *sd EINA_UNUSED, const
30{ 30{
31 const char *key = "atspi_image_description"; 31 const char *key = "atspi_image_description";
32 const char *descr = eina_stringshare_add(description); 32 const char *descr = eina_stringshare_add(description);
33 char *old_descr; 33 char *old_descr = eo_key_data_get(obj, key);
34 if (eo_key_data_get(obj, key)) 34 if (old_descr)
35 { 35 {
36 eina_stringshare_del(old_descr); 36 eina_stringshare_del(old_descr);
37 eo_event_callback_del(obj, EO_BASE_EVENT_DEL, _free_desc_cb, old_descr); 37 eo_event_callback_del(obj, EO_BASE_EVENT_DEL, _free_desc_cb, old_descr);