diff options
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r-- | sway/ipc-server.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 727f06da..838dbe2a 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c | |||
@@ -493,6 +493,10 @@ bool ipc_send_reply(struct ipc_client *client, const char *payload, uint32_t pay | |||
493 | } | 493 | } |
494 | 494 | ||
495 | json_object *ipc_json_describe_workspace(swayc_t *workspace) { | 495 | json_object *ipc_json_describe_workspace(swayc_t *workspace) { |
496 | if (!sway_assert(workspace, "Workspace must not be NULL")) { | ||
497 | return NULL; | ||
498 | } | ||
499 | |||
496 | int num = isdigit(workspace->name[0]) ? atoi(workspace->name) : -1; | 500 | int num = isdigit(workspace->name[0]) ? atoi(workspace->name) : -1; |
497 | json_object *object = json_object_new_object(); | 501 | json_object *object = json_object_new_object(); |
498 | json_object *rect = json_object_new_object(); | 502 | json_object *rect = json_object_new_object(); |