summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout.c b/src/layout.c
index 6c1df75..9e39fd4 100644
--- a/src/layout.c
+++ b/src/layout.c
@@ -395,7 +395,7 @@ ivi_layout_activate_complete(struct ivi_output *output,
* we're trying to complete activation with means we're
* operating on the same app_id so do update previous_active as
* it will overwrite it with the same value */
- if (app_id && !strcmp(c_app_id, app_id)) {
+ if (c_app_id && app_id && !strcmp(c_app_id, app_id)) {
update_previous = false;
}
}