summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichelle Legrand <legrand.michelle@outlook.com>2015-03-03 10:17:02 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-26 18:17:37 +0100
commit37f02ee57c397d2713acadb5b49ed6fbf53ed59f (patch)
treeaadf2d112c019148b27d480186cf30309bb4e231
parentf6a2b715abf5bf00d92368c267e6377e5b477399 (diff)
task_switcher: add variable verification.
Summary: If dbus is not installed the task switcher raise a segmentation error. So we check if the returned variable by eo_do is not null before continuing. @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/bin/test_task_switcher.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/test_task_switcher.c b/src/bin/test_task_switcher.c
index a0e14dd0a..ff7d7e45c 100644
--- a/src/bin/test_task_switcher.c
+++ b/src/bin/test_task_switcher.c
@@ -300,6 +300,8 @@ _app_open(const char *package)
300 const char *app_package = NULL; 300 const char *app_package = NULL;
301 301
302 eo_do(app, app_package = elm_app_client_package_get()); 302 eo_do(app, app_package = elm_app_client_package_get());
303 if (!app_package)
304 return;
303 if (!strcmp(package, app_package)) 305 if (!strcmp(package, app_package))
304 return; 306 return;
305 } 307 }