diff options
author | William McKinnon <[email protected]> | 2023-05-20 17:03:20 -0400 |
---|---|---|
committer | William McKinnon <[email protected]> | 2023-05-20 17:03:20 -0400 |
commit | d2ad352c7f187268cf6902117cdae80fd1108ef1 (patch) | |
tree | 0ca5a19a5b769ec20c5d61005bcc5377d25d29e0 | |
parent | 415e072a3af292937f0b4c41acadafaee6958437 (diff) |
fix: maybe-uninitialized error
-rw-r--r-- | sway/ipc-json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 717ebf78..c7e94a81 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -343,7 +343,7 @@ static void ipc_json_describe_enabled_output(struct sway_output *output, json_object_object_add(layer, "namespace", json_object_new_string(lsurface->layer_surface->namespace)); - char *layer_name; + char *layer_name = NULL; switch (lsurface->layer) { case ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND: layer_name = "background"; |