X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fopenocd.c;h=3f0e14289f047d3a75e309ff5d083e5ccce999f4;hp=66555e60b1420ac218993ebb2dd4f7f5b342cf10;hb=5165afc00562d175aa3a0d752a8c709e23984ed9;hpb=d6a1ff8399ad4ca8757f523754d1a5e4ce696d63 diff --git a/src/openocd.c b/src/openocd.c index 66555e60b1..3f0e14289f 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -47,7 +47,6 @@ #include #endif - #define OPENOCD_VERSION \ "Open On-Chip Debugger " VERSION RELSTR " (" PKGBLDDATE ")" @@ -62,15 +61,15 @@ static int jim_version_command(Jim_Interp *interp, int argc, const char *str = ""; char * version_str; version_str = OPENOCD_VERSION; - + if (argc == 2) str = Jim_GetString(argv[1], NULL); if (strcmp("git", str) == 0) { version_str = GITVERSION; - } - + } + Jim_SetResult(interp, Jim_NewStringObj(interp, version_str, -1)); return JIM_OK;