1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Initialize the Keyword::_lineno field through the constructor.

This commit is contained in:
Bruno Haible
2017-04-16 17:39:15 +02:00
parent 09cfae667e
commit a459641a53
5 changed files with 30 additions and 15 deletions

View File

@@ -972,8 +972,7 @@ Input::read_input ()
/* Allocate Keyword and add it to the list. */
Keyword *new_kw = _factory->create_keyword (keyword, keyword_length,
rest);
new_kw->_lineno = lineno;
rest, lineno);
*list_tail = new Keyword_List (new_kw);
list_tail = &(*list_tail)->rest();
}