mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
committed by
Jakob Lykke Andersen
parent
e70fc22c72
commit
5488bda082
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user