Skip to content

Commit 0e3b30d

Browse files
committed
Initialize brace_count in _parse_instance_options_from_dts
Signed-off-by: Cong Wang <cwang@multikernel.io>
1 parent 7739f6c commit 0e3b30d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/kerf/dtc/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,7 @@ def _parse_instance_options_from_dts(self, content: str) -> Optional[Dict[str, b
10631063

10641064
start_pos = options_start.end() - 1
10651065
end_pos = start_pos
1066+
brace_count = 0
10661067

10671068
for i, char in enumerate(content[start_pos:], start_pos):
10681069
if char == '{':

0 commit comments

Comments
 (0)