X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fopenocd.c;h=69ed7601e63689343f9256e330b3a6868dc93fcd;hb=4e27305ed5dac23e8b9a43e43b4b908dc53a0a20;hp=04a63074152af9976439cc4cb2c57ebca0c7a66c;hpb=1e0f89841575de2b8b6313825ec8edd8bc7910a0;p=openocd.git diff --git a/src/openocd.c b/src/openocd.c index 04a6307415..69ed7601e6 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -268,6 +269,9 @@ int openocd_main(int argc, char *argv[]) cmd_ctx = setup_command_handler(NULL); + if (util_init(cmd_ctx) != ERROR_OK) + return EXIT_FAILURE; + if (ioutil_init(cmd_ctx) != ERROR_OK) return EXIT_FAILURE;