From: Øyvind Harboe Date: Wed, 7 Jul 2010 12:31:07 +0000 (+0200) Subject: transport: fix bug/typo in interface_transports command X-Git-Tag: v0.5.0-rc1~532 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ccaa9edf295e2c763c5a3c32a3f901b1637b99c5;p=openocd transport: fix bug/typo in interface_transports command Classic manifestation of weakness of dangling { formatting :-) Hard to spot these sort of mistakes visually. Signed-off-by: Øyvind Harboe --- diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c index 15b3ddc2..37e6ee9a 100644 --- a/src/jtag/adapter.c +++ b/src/jtag/adapter.c @@ -101,14 +101,15 @@ COMMAND_HANDLER(interface_transport_command) retval = CALL_COMMAND_HANDLER(transport_list_parse, &transports); if (retval != ERROR_OK) { return retval; + } retval = allow_transports(CMD_CTX, (const char **)transports); + if (retval != ERROR_OK) { for (unsigned i = 0; transports[i]; i++) free(transports[i]); free(transports); } - } return retval; }