aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/target.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/target.c b/src/target/target.c
index bcd00a1f..a414a6a7 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -940,6 +940,8 @@ static int target_init_one(struct command_context *cmd_ctx,
if (type->check_reset== NULL)
type->check_reset = default_check_reset;
+ assert(type->init_target != NULL);
+
int retval = type->init_target(cmd_ctx, target);
if (ERROR_OK != retval)
{