Skip to content

Commit

Permalink
print rev id only if its available
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jun 3, 2024
1 parent 5a71434 commit 346cfb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -3889,7 +3889,8 @@ static void perform_ver(const char *arg)
"32"
#endif
" v%s, %.16s\n", version, _stubinfo->magic);
printf(" Source Control Revision ID: %s\n", REV_ID);
if (REV_ID[0])
printf(" Source Control Revision ID: %s\n", REV_ID);
if (is_r)
{
const int buffersize = 256;
Expand Down

0 comments on commit 346cfb4

Please sign in to comment.