Permalink
Browse files

remove leading whitespaces from command lines

  • Loading branch information...
1 parent d714702 commit aac9f353a28c0f414b27ac54bbbb2292c152eedc @wertarbyte committed Feb 13, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 triggerparser.c
View
@@ -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 {

0 comments on commit aac9f35

Please sign in to comment.