summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c
diff options
context:
space:
mode:
authorPatryk Kaczmarek <patryk.k@samsung.com>2012-09-19 10:39:27 +0000
committerCarsten Haitzler <raster@rasterman.com>2012-09-19 10:39:27 +0000
commit23676f34fb548a131230c81b572e345e621b2437 (patch)
tree07b3d215dae4819732b44f244903233973c6b7a2 /legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c
parent0b753f3e3377d0cd0c8ad857602e4ada4894dc98 (diff)
From: Patryk Kaczmarek <patryk.k@samsung.com>
Subject: Re: [E-devel] [Patch] [Ecore] Patch with NULL checks to some functions in ecore module I had prepared patch for some Ecore functions which, in my opinion, critically need NULL checks. I had tried to keep each file convention. SVN revision: 76852
Diffstat (limited to 'legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c')
-rw-r--r--legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c b/legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c
index cd6ec41b23..2d13b8eea6 100644
--- a/legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c
+++ b/legacy/ecore/src/lib/ecore_imf_evas/ecore_imf_evas.c
@@ -1,7 +1,10 @@
1
1#ifdef HAVE_CONFIG_H 2#ifdef HAVE_CONFIG_H
2# include <config.h> 3# include <config.h>
3#endif 4#endif
4 5
6#include <Ecore.h>
7#include "ecore_private.h"
5#include "Ecore_IMF_Evas.h" 8#include "Ecore_IMF_Evas.h"
6 9
7/** 10/**
@@ -299,6 +302,18 @@ EAPI void
299ecore_imf_evas_event_key_up_wrap(Evas_Event_Key_Up *evas_event, 302ecore_imf_evas_event_key_up_wrap(Evas_Event_Key_Up *evas_event,
300 Ecore_IMF_Event_Key_Up *imf_event) 303 Ecore_IMF_Event_Key_Up *imf_event)
301{ 304{
305 if (!evas_event)
306 {
307 ERR("Evas event is missing");
308 return;
309 }
310
311 if (!imf_event)
312 {
313 ERR("Imf event is missing");
314 return;
315 }
316
302 imf_event->keyname = evas_event->keyname ? evas_event->keyname : _ecore_imf_evas_event_empty; 317 imf_event->keyname = evas_event->keyname ? evas_event->keyname : _ecore_imf_evas_event_empty;
303 imf_event->key = evas_event->key ? evas_event->key : _ecore_imf_evas_event_empty; 318 imf_event->key = evas_event->key ? evas_event->key : _ecore_imf_evas_event_empty;
304 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty; 319 imf_event->string = evas_event->string ? evas_event->string : _ecore_imf_evas_event_empty;