mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Fix quote stripping
Let's not use !strcmp(…) anymore.
This commit is contained in:
parent
5d770d028a
commit
610794d4e3
@ -254,7 +254,8 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
|
|||||||
//TODO better handling of argv
|
//TODO better handling of argv
|
||||||
int argc;
|
int argc;
|
||||||
char **argv = split_args(cmd, &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;
|
int i;
|
||||||
for (i = 1; i < argc; ++i) {
|
for (i = 1; i < argc; ++i) {
|
||||||
if (*argv[i] == '\"' || *argv[i] == '\'') {
|
if (*argv[i] == '\"' || *argv[i] == '\'') {
|
||||||
|
Loading…
Reference in New Issue
Block a user