[Pdbg] [PATCH 11/18] libpdbg: Add new targets at the end of the linked list
Amitay Isaacs
amitay at ozlabs.org
Wed May 16 16:17:29 AEST 2018
From: Amitay Isaacs <amitay at gmail.com>
Signed-off-by: Amitay Isaacs <amitay at gmail.com>
---
libpdbg/target.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libpdbg/target.c b/libpdbg/target.c
index 911d26f..e157f14 100644
--- a/libpdbg/target.c
+++ b/libpdbg/target.c
@@ -247,7 +247,7 @@ struct pdbg_target_class *get_target_class(const char *name)
assert(target_class);
target_class->name = strdup(name);
list_head_init(&target_class->targets);
- list_add(&target_classes, &target_class->class_head_link);
+ list_add_tail(&target_classes, &target_class->class_head_link);
return target_class;
}
--
2.17.0
More information about the Pdbg
mailing list