commit 0bc819dd8b09da29e538667b60e78cb09fa5dc6c
parent aad2f444f0bfc1cd7057bf55c9249dc36680af15
Author: emersion <contact@emersion.fr>
Date: Thu, 8 Nov 2018 14:28:37 +0100
Merge pull request #3089 from sghctoma/fix-clang-build
Fix building with clang
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
@@ -181,7 +181,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
}
struct sway_container *current = config->handler_context.container;
- struct sway_container *other;
+ struct sway_container *other = NULL;
char *value = join_args(argv + 3, argc - 3);
if (strcasecmp(argv[2], "id") == 0) {