From 5488bda082d3f712d27189dc88ccc46551220b22 Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Tue, 3 Nov 2020 19:13:26 -0300 Subject: [PATCH] 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 --- sphinx/domains/c.py | 1 + 1 file changed, 1 insertion(+) 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()