X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fhello.c;h=9d078c0e776cbc2f455a5b4662edefcbdb223560;hb=28c24a5c41c47a66e9310912f88148814f730a25;hp=a1c00c0ddf121d682e789c71671e40d87294a782;hpb=bba48b057cdc4f26721e06a5310652dcf0e55873;p=fw%2Fopenocd diff --git a/src/hello.c b/src/hello.c index a1c00c0dd..9d078c0e7 100644 --- a/src/hello.c +++ b/src/hello.c @@ -88,7 +88,7 @@ COMMAND_HANDLER(handle_hello_command) { const char *sep, *name; int retval = CALL_COMMAND_HANDLER(handle_hello_args, &sep, &name); - if (ERROR_OK == retval) + if (retval == ERROR_OK) command_print(CMD, "Greetings%s%s!", sep, name); return retval; }