From 6a556974a2f9d78603b8f51508fb019058189cbc Mon Sep 17 00:00:00 2001 From: Michelle Legrand Date: Tue, 3 Mar 2015 10:17:02 +0100 Subject: [PATCH] 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 Change-Id: I55ce510f798f6349a7b7d8132f884cd5a2b715c1 Signed-off-by: Cedric BAIL --- src/bin/test_task_switcher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/test_task_switcher.c b/src/bin/test_task_switcher.c index a0e14dd..ff7d7e4 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; } -- 2.7.4