diff options
author | R. Diez <rdiezmail-openocd@yahoo.de> | 2021-05-23 12:01:48 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-06-04 17:46:24 +0100 |
commit | 6a49b1ce2344c8707e322565ff0e5254762353fd (patch) | |
tree | dde61d5542e138d718c0d0ac04ed709c81f25c74 /src/target/target.c | |
parent | 358ab3483d2cad0c869585f8a340154690f56569 (diff) | |
download | riscv-openocd-6a49b1ce2344c8707e322565ff0e5254762353fd.zip riscv-openocd-6a49b1ce2344c8707e322565ff0e5254762353fd.tar.gz riscv-openocd-6a49b1ce2344c8707e322565ff0e5254762353fd.tar.bz2 |
Avoid non-standard conditionals with omitted operands.
Fixes bug #257.
Change-Id: I05fc6468306d46399e769098e031e7e588798afc
Signed-off-by: R. Diez <rdiezmail-openocd@yahoo.de>
Reviewed-on: http://openocd.zylin.com/6271
Tested-by: jenkins
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target/target.c')
-rw-r--r-- | src/target/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c index 63f68eb..450e231 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -5178,7 +5178,7 @@ no_params: if (goi->argc != 0) goto no_params; } - Jim_SetResultString(goi->interp, target->gdb_port_override ? : "undefined", -1); + Jim_SetResultString(goi->interp, target->gdb_port_override ? target->gdb_port_override : "undefined", -1); /* loop for more */ break; |