diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-12-15 18:17:36 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-12-15 19:01:41 -0500 |
commit | a2b914965686bb4352b8ebc4a46d898f5a793647 (patch) | |
tree | b1dd50cfcb5b05b6119452ef2911a1221edf8f62 /sway/container.c | |
parent | 7784f1a905cad5ad805195dcc3cba23ff206501c (diff) |
Add remaining sway allocation failure handling
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index e5284200..8a584efa 100644 --- a/sway/container.c +++ b/sway/container.c @@ -217,7 +217,7 @@ swayc_t *new_workspace(swayc_t *output, const char *name) { workspace->y = output->y; workspace->width = output->width; workspace->height = output->height; - workspace->name = strdup(name); + workspace->name = !name ? NULL : strdup(name); workspace->visible = false; workspace->floating = create_list(); |