aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/workspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r--sway/commands/workspace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c
index 35224f8a..14fe242f 100644
--- a/sway/commands/workspace.c
+++ b/sway/commands/workspace.c
@@ -61,6 +61,10 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
61 return error; 61 return error;
62 } 62 }
63 struct workspace_output *wso = calloc(1, sizeof(struct workspace_output)); 63 struct workspace_output *wso = calloc(1, sizeof(struct workspace_output));
64 if (!wso) {
65 return cmd_results_new(CMD_FAILURE, "workspace output",
66 "Unable to allocate workspace output");
67 }
64 wso->workspace = strdup(argv[0]); 68 wso->workspace = strdup(argv[0]);
65 wso->output = strdup(argv[2]); 69 wso->output = strdup(argv[2]);
66 int i = -1; 70 int i = -1;