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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user