Deal with empty svn_revisions.

This commit is contained in:
Martin v. Löwis 2006-01-06 00:43:42 +00:00
parent a0196c52d7
commit 456af5f78b
1 changed files with 1 additions and 1 deletions

View File

@ -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,