Commit 456af5f7 authored by Martin v. Löwis's avatar Martin v. Löwis

Deal with empty svn_revisions.

parent a0196c52
......@@ -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,
......
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