diff options
author | Cyril Bur <cyrilbur@gmail.com> | 2018-02-14 15:27:40 +1100 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-02-16 16:22:23 +1100 |
commit | 7407afd8b49f4ce178b6b5acd5b95044838b1482 (patch) | |
tree | d0ae9f461b06e581e79a767ab58e645aad703b22 /libpdbg/htm.c | |
parent | c4ebabd885ab47b75f32a3ff7f22a7919b334764 (diff) | |
download | pdbg-7407afd8b49f4ce178b6b5acd5b95044838b1482.tar.gz pdbg-7407afd8b49f4ce178b6b5acd5b95044838b1482.zip |
libpdbg/htm: Both `chtm` and `nhtm` classes are valid
Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Diffstat (limited to 'libpdbg/htm.c')
-rw-r--r-- | libpdbg/htm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libpdbg/htm.c b/libpdbg/htm.c index 33fe64c..692b4e0 100644 --- a/libpdbg/htm.c +++ b/libpdbg/htm.c @@ -168,8 +168,10 @@ struct htm_status { static struct htm *check_and_convert(struct pdbg_target *target) { - if (strcmp(target->class, "nhtm")) - return NULL; + + if (!pdbg_target_is_class(target, "nhtm") && + !pdbg_target_is_class(target, "chtm")) + return NULL; return target_to_htm(target); } |