Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove leading whitespaces from command lines

  • Loading branch information...
commit aac9f353a28c0f414b27ac54bbbb2292c152eedc 1 parent d714702
Stefan Tomanek authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 triggerparser.c
4 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 {
Please sign in to comment.
Something went wrong with that request. Please try again.