Skip to content

Commit

Permalink
remove leading whitespaces from command lines
Browse files Browse the repository at this point in the history
  • Loading branch information
wertarbyte committed Feb 13, 2012
1 parent d714702 commit aac9f35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions triggerparser.c
Expand Up @@ -111,6 +111,10 @@ trigger* parse_trigger(char* line) {
end --;
}
*(end+1) = '\0';
/* remove leading whitespaces as well */
while (isspace(*s_action)) {
s_action++;
}
/* now copy the strings (mode is already copied in parse_evdef) */
t->action = strdup(s_action);
} else {
Expand Down

0 comments on commit aac9f35

Please sign in to comment.