summaryrefslogtreecommitdiff
path: root/Modules/getbuildinfo.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-01-06 00:43:42 +0000
committerMartin v. Löwis <martin@v.loewis.de>2006-01-06 00:43:42 +0000
commita98a073200c8c703db0d276c6dff48cdec2f4265 (patch)
treedacf0d272fe6fe10c7fb1d003913561b646706c6 /Modules/getbuildinfo.c
parente13463d964767e3ca7792d02d87a71af349977da (diff)
downloadcpython-a98a073200c8c703db0d276c6dff48cdec2f4265.tar.gz
Deal with empty svn_revisions.
Diffstat (limited to 'Modules/getbuildinfo.c')
-rw-r--r--Modules/getbuildinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index 3312a87c2b..8e00e4f1e1 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,