Commit 93f2afa45f4c dropped the sentinel off the end
of the command_registrants[] array.  The loop immediately
following the initialization will walk right off the end.

Signed-off-by: Stacey Sheldon <s...@solidgoldbomb.org>
---
 src/openocd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/openocd.c b/src/openocd.c
index bba1e0b..04a6307 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -235,6 +235,7 @@ struct command_context *setup_command_handler(Jim_Interp 
*interp)
                &nand_register_commands,
                &pld_register_commands,
                &mflash_register_commands,
+               NULL
        };
        for (unsigned i = 0; NULL != command_registrants[i]; i++)
        {
-- 
1.7.0

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to