X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.c;fp=src%2Fhelper%2Fcommand.c;h=4be3abd74a37e6578910fdd98733b970fcba086f;hp=43c5a0ffb7ee7f6452bebd164b47ac5e410bb5c5;hb=6a49b1ce2344c8707e322565ff0e5254762353fd;hpb=358ab3483d2cad0c869585f8a340154690f56569 diff --git a/src/helper/command.c b/src/helper/command.c index 43c5a0ffb7..4be3abd74a 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -866,9 +866,9 @@ static COMMAND_HELPER(command_help_show, struct help_entry *c, stage_msg = " (?mode error?)"; break; } - msg = alloc_printf("%s%s", c->help ? : "", stage_msg); + msg = alloc_printf("%s%s", c->help ? c->help : "", stage_msg); } else - msg = alloc_printf("%s", c->help ? : ""); + msg = alloc_printf("%s", c->help ? c->help : ""); if (NULL != msg) { command_help_show_wrap(msg, n + 3, n + 3);