diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-01-06 00:43:42 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-01-06 00:43:42 (GMT) |
commit | 456af5f78b5b63da2ffb1995adb991445f8212e9 (patch) | |
tree | 9cbbb30bfedc9a3b10a4a1e89aa5eee7e29180be | |
parent | a0196c52d7eff93fc4e4db32f8c36441b7655e49 (diff) | |
download | cpython-456af5f78b5b63da2ffb1995adb991445f8212e9.zip cpython-456af5f78b5b63da2ffb1995adb991445f8212e9.tar.gz cpython-456af5f78b5b63da2ffb1995adb991445f8212e9.tar.bz2 |
Deal with empty svn_revisions.
-rw-r--r-- | Modules/getbuildinfo.c | 2 |
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, |