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)
downloadelementary-37f02ee57c397d2713acadb5b49ed6fbf53ed59f.tar.gz
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)
const char *app_package = NULL;
eo_do(app, app_package = elm_app_client_package_get());
+ if (!app_package)
+ return;
if (!strcmp(package, app_package))
return;
}