From: Martin v. Löwis Date: Fri, 6 Jan 2006 00:43:42 +0000 (+0000) Subject: Deal with empty svn_revisions. X-Git-Tag: v2.5a0~889 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=456af5f78b5b63da2ffb1995adb991445f8212e9;p=python Deal with empty svn_revisions. --- 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,