diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-09-09 13:10:18 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-09-21 00:31:18 +0100 |
commit | 6f7ee0bb7ce507902f571f823fe173f07ec7e32f (patch) | |
tree | db5e05ed24578581f2136ec6ae2dcaa7d8aa4abd | |
parent | 7b1bcae879305da138bb3e08d04735b54266c537 (diff) | |
download | rockbox-6f7ee0bb7ce507902f571f823fe173f07ec7e32f.tar.gz rockbox-6f7ee0bb7ce507902f571f823fe173f07ec7e32f.zip |
regtools: fix library bug when checking if a reference is valid or not
Change-Id: I8adea40d2fa7c1a26f1975d987233249f61af8ef
-rw-r--r-- | utils/regtools/lib/soc_desc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.cpp b/utils/regtools/lib/soc_desc.cpp index 3238c4de73..ef8aeb5a17 100644 --- a/utils/regtools/lib/soc_desc.cpp +++ b/utils/regtools/lib/soc_desc.cpp | |||
@@ -1511,7 +1511,7 @@ node_inst_t::node_inst_t() | |||
1511 | 1511 | ||
1512 | bool node_inst_t::valid() const | 1512 | bool node_inst_t::valid() const |
1513 | { | 1513 | { |
1514 | return is_root() || get() != 0; | 1514 | return (is_root() && node().valid()) || get() != 0; |
1515 | } | 1515 | } |
1516 | 1516 | ||
1517 | void node_inst_t::reset() | 1517 | void node_inst_t::reset() |