Kaydet (Commit) 456af5f7 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Deal with empty svn_revisions.

üst a0196c52
...@@ -25,7 +25,7 @@ Py_GetBuildInfo(void) ...@@ -25,7 +25,7 @@ Py_GetBuildInfo(void)
{ {
static char buildinfo[50]; static char buildinfo[50];
char *revision = Py_SubversionRevision(); char *revision = Py_SubversionRevision();
char *sep = revision ? ":" : ""; char *sep = *revision ? ":" : "";
char *branch = Py_SubversionShortBranch(); char *branch = Py_SubversionShortBranch();
PyOS_snprintf(buildinfo, sizeof(buildinfo), PyOS_snprintf(buildinfo, sizeof(buildinfo),
"%s%s%s, %.20s, %.9s", branch, sep, revision, "%s%s%s, %.20s, %.9s", branch, sep, revision,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment