domains: c: fix use of unitialized variable

_fill_empty was not updating the state with the value of line, so in
recursive calls it would fail the assert checking for its own
initialization.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
This commit is contained in:
Fabio Utzig
2020-11-03 19:13:26 -03:00
committed by Jakob Lykke Andersen
parent e70fc22c72
commit 5488bda082

View File

@@ -1533,6 +1533,7 @@ class Symbol:
self.declaration = declaration
self.declaration.symbol = self
self.docname = docname
self.line = line
self._assert_invariants()
# and symbol addition should be done as well
self._add_function_params()