diff options
| author | Fabio Utzig <fabio.utzig@nordicsemi.no> | 2020-11-03 19:13:26 -0300 |
|---|---|---|
| committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2020-11-07 10:39:25 +0100 |
| commit | 5488bda082d3f712d27189dc88ccc46551220b22 (patch) | |
| tree | 4b5e461476d3486812479a6dfb759ef40dbf52e8 /sphinx/domains/c.py | |
| parent | e70fc22c72880f47d13ac0811090a01a4b425824 (diff) | |
| download | sphinx-git-5488bda082d3f712d27189dc88ccc46551220b22.tar.gz | |
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>
Diffstat (limited to 'sphinx/domains/c.py')
| -rw-r--r-- | sphinx/domains/c.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py index e3570b593..5896f4a80 100644 --- a/sphinx/domains/c.py +++ b/sphinx/domains/c.py @@ -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() |
