Deal with empty svn_revisions.
This commit is contained in:
parent
a0196c52d7
commit
456af5f78b
|
@ -25,7 +25,7 @@ Py_GetBuildInfo(void)
|
||||||
{
|
{
|
||||||
static char buildinfo[50];
|
static char buildinfo[50];
|
||||||
char *revision = Py_SubversionRevision();
|
char *revision = Py_SubversionRevision();
|
||||||
char *sep = revision ? ":" : "";
|
char *sep = *revision ? ":" : "";
|
||||||
char *branch = Py_SubversionShortBranch();
|
char *branch = Py_SubversionShortBranch();
|
||||||
PyOS_snprintf(buildinfo, sizeof(buildinfo),
|
PyOS_snprintf(buildinfo, sizeof(buildinfo),
|
||||||
"%s%s%s, %.20s, %.9s", branch, sep, revision,
|
"%s%s%s, %.20s, %.9s", branch, sep, revision,
|
||||||
|
|
Loading…
Reference in New Issue