diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-27 21:26:00 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-27 21:26:00 +0530 |
| commit | ef99b3441bd8d5ea8de192af8476f684aa3023c6 (patch) | |
| tree | 2c88fc3d73da5569deb42f64649bf1ef5eaaba12 /src | |
| parent | 73d7dcf45d79cb91cef6690559364fcc0cbb1815 (diff) | |
lexer: delete unnecessary lines
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 |
