diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lexer.c b/src/lexer.c index 5079d35..107cf31 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -75,8 +75,7 @@ found_start: break; } - asprintf((char **) &directive->operands, "%s", operand); - free(operand); + directive->operands = operand; } else if (strncmp(buffer + n, "contentfor", strlen("contentfor")) == 0) { directive->type = CONTENTFOR; contentfor_operands_t *operands = malloc(sizeof(contentfor_operands_t)); |