aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/mark.c')
-rw-r--r--sway/commands/mark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/mark.c b/sway/commands/mark.c
index fb95a7d0..b1f47be1 100644
--- a/sway/commands/mark.c
+++ b/sway/commands/mark.c
@@ -19,7 +19,7 @@ struct cmd_results *cmd_mark(int argc, char **argv) {
return error;
}
struct sway_container *container = config->handler_context.container;
- if (!container->view) {
+ if (!container || !container->view) {
return cmd_results_new(CMD_INVALID, "mark",
"Only views can have marks");
}