From 1628c3b2ae3c04def1b9cdfd71852b690792192c Mon Sep 17 00:00:00 2001 From: Hoseon LEE Date: Thu, 12 Sep 2013 17:20:07 +0900 Subject: [PATCH] Add if-statement to check return value [Issue#] Prevent 12049 [Problem] Unchecked return value [Cause] N/A [Solution] Adding the checking return value. If return value is FALSE, print warning log. Change-Id: I079be8ea2059ff6370e8e0c32c5c0c912d2bc3a5 --- src/dispatch-event/dispatch_event_support.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 src/dispatch-event/dispatch_event_support.cpp diff --git a/src/dispatch-event/dispatch_event_support.cpp b/src/dispatch-event/dispatch_event_support.cpp old mode 100644 new mode 100755 index d9b4d2b..7d001a2 --- a/src/dispatch-event/dispatch_event_support.cpp +++ b/src/dispatch-event/dispatch_event_support.cpp @@ -181,7 +181,10 @@ void dispatchHwKeyEvent(Evas_Object* ewkView, const std::string key) // just for debugging // LogDebug("script :\n" << script.str()); - ewk_view_script_execute(ewkView, script.str().c_str(), NULL, NULL); + if (ewk_view_script_execute(ewkView, script.str().c_str(), NULL, NULL) != EINA_TRUE) + { + LogWarning("ewk_view_script_execute returned FALSE!"); + } } } -- 2.7.4