aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-02-05 12:52:02 +0100
committerDrew DeVault <sir@cmpwn.com>2019-02-11 10:15:00 -0500
commit610794d4e3b2d8434f4ea3ef518bcdfc8a2dc28c (patch)
treeb0a8c48666b3f972322d05743ee51515a7a1520e
parent5d770d028a0fa29861ef07e04d66ae28cbe9c6a4 (diff)
downloadsway-610794d4e3b2d8434f4ea3ef518bcdfc8a2dc28c.zip
sway-610794d4e3b2d8434f4ea3ef518bcdfc8a2dc28c.tar.gz
sway-610794d4e3b2d8434f4ea3ef518bcdfc8a2dc28c.tar.bz2
Fix quote stripping
Let's not use !strcmp(…) anymore.
-rw-r--r--sway/commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 82f4154..3fc4f86 100644
--- 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] == '\'') {