mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
Deal with empty svn_revisions.
This commit is contained in:
parent
a0196c52d7
commit
456af5f78b
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ Py_GetBuildInfo(void)
|
|||
{
|
||||
static char buildinfo[50];
|
||||
char *revision = Py_SubversionRevision();
|
||||
char *sep = revision ? ":" : "";
|
||||
char *sep = *revision ? ":" : "";
|
||||
char *branch = Py_SubversionShortBranch();
|
||||
PyOS_snprintf(buildinfo, sizeof(buildinfo),
|
||||
"%s%s%s, %.20s, %.9s", branch, sep, revision,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue