]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
scanner: update last_line in struct location
authorPatrick McHardy <kaber@trash.net>
Tue, 4 Feb 2014 08:09:27 +0000 (08:09 +0000)
committerPatrick McHardy <kaber@trash.net>
Tue, 4 Feb 2014 08:11:31 +0000 (08:11 +0000)
Currently always has the value 0.

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/scanner.l

index 11965cdf9db7ad54956c32af796b31f5d0e3ee45..e4cb398382ce78b86cfc3ab1307fa95f19e012cf 100644 (file)
@@ -70,6 +70,7 @@ static void update_pos(struct parser_state *state, struct location *loc,
 {
        loc->indesc                     = state->indesc;
        loc->first_line                 = state->indesc->lineno;
+       loc->last_line                  = state->indesc->lineno;
        loc->first_column               = state->indesc->column;
        loc->last_column                = state->indesc->column + len - 1;
        state->indesc->column           += len;