aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 548cb8ed..7e9169e8 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -504,7 +504,7 @@ static char **split_directive(char *line, int *argc) {
if (!*line) return parts;
int in_string = 0, in_character = 0;
- int i, j, _;
+ int i, j;
for (i = 0, j = 0; line[i]; ++i) {
if (line[i] == '\\') {
++i;
@@ -517,7 +517,7 @@ static char **split_directive(char *line, int *argc) {
char *item = malloc(i - j + 1);
strncpy(item, line + j, i - j);
item[i - j] = '\0';
- item = strip_whitespace(item, &_);
+ strip_whitespace(item);
if (item[0] == '\0') {
free(item);
} else {
@@ -535,7 +535,7 @@ static char **split_directive(char *line, int *argc) {
char *item = malloc(i - j + 1);
strncpy(item, line + j, i - j);
item[i - j] = '\0';
- item = strip_whitespace(item, &_);
+ strip_whitespace(item);
if (*argc == capacity) {
capacity++;
parts = realloc(parts, sizeof(char *) * capacity);