sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 478b128c26057dcd7c97aaf5f91aa08dfce7d38f
parent 1e65cc1ea6587717160ce413904399f0431e97ba
Author: emersion <contact@emersion.fr>
Date:   Tue,  5 Feb 2019 12:52:02 +0100

Fix quote stripping

Let's not use !strcmp(…) anymore.

Diffstat:
Msway/commands.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sway/commands.c b/sway/commands.c @@ -254,7 +254,8 @@ list_t *execute_command(char *_exec, struct sway_seat *seat, //TODO better handling of argv int argc; char **argv = split_args(cmd, &argc); - if (!strcmp(argv[0], "exec") && !strcmp(argv[0], "exec_always")) { + if (strcmp(argv[0], "exec") != 0 && + strcmp(argv[0], "exec_always") != 0) { int i; for (i = 1; i < argc; ++i) { if (*argv[i] == '\"' || *argv[i] == '\'') {