summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/transport.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jtag/transport.c b/src/jtag/transport.c
index 5033ebc6..f570103c 100644
--- a/src/jtag/transport.c
+++ b/src/jtag/transport.c
@@ -125,8 +125,10 @@ int allow_transports(struct command_context *ctx, const char **vector)
} else {
/* guard against user config errors */
LOG_WARNING("must select a transport.");
- while (*vector)
- LOG_DEBUG("allow transport '%s'", *vector++);
+ while (*vector) {
+ LOG_DEBUG("allow transport '%s'", *vector);
+ vector++;
+ }
return ERROR_OK;
}
}