summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-01-06 00:43:42 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-01-06 00:43:42 (GMT)
commit456af5f78b5b63da2ffb1995adb991445f8212e9 (patch)
tree9cbbb30bfedc9a3b10a4a1e89aa5eee7e29180be
parenta0196c52d7eff93fc4e4db32f8c36441b7655e49 (diff)
downloadcpython-456af5f78b5b63da2ffb1995adb991445f8212e9.zip
cpython-456af5f78b5b63da2ffb1995adb991445f8212e9.tar.gz
cpython-456af5f78b5b63da2ffb1995adb991445f8212e9.tar.bz2
Deal with empty svn_revisions.
-rw-r--r--Modules/getbuildinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index 3312a87..8e00e4f 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -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,