From: Patrick McHardy Date: Tue, 4 Feb 2014 08:09:27 +0000 (+0000) Subject: scanner: update last_line in struct location X-Git-Tag: v0.2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22103647c8206b66a6c7aab49fc985936d7cb9a7;p=thirdparty%2Fnftables.git scanner: update last_line in struct location Currently always has the value 0. Signed-off-by: Patrick McHardy --- diff --git a/src/scanner.l b/src/scanner.l index 11965cdf9..e4cb39838 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -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;