diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lexer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lexer.c b/src/lexer.c index 3728147..1a8366f 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -237,10 +237,8 @@ lexer_handle_put(directive_t *directive, directive->type = PUT; /* TODO: Use this for include and contentfor too instead of sscanf() */ - char *operand = trim(strndup(buffer + n + strlen("put"), - match->length - n - strlen("put") - 2)); - - directive->operands = operand; + directive->operands = trim(strndup(buffer + n + strlen("put"), + match->length - n - strlen("put") - 2)); } void |
