From: Guido van Rossum Date: Wed, 5 Oct 1994 14:48:22 +0000 (+0000) Subject: Fix getpythonpath() fix; never #include frozen.c. X-Git-Tag: v1.1~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8a1e8cef3bd6d2ee53e1cb418bd561c81957274;p=thirdparty%2FPython%2Fcpython.git Fix getpythonpath() fix; never #include frozen.c. --- diff --git a/Modules/config.c.in b/Modules/config.c.in index 981a19f8d202..fb8b49bc9309 100644 --- a/Modules/config.c.in +++ b/Modules/config.c.in @@ -167,7 +167,8 @@ getpythonpath() fatal("not enough memory to copy module search path"); strcpy(buf, path); p = buf + strlen(buf); - *p++ = DELIM; + if (p != buf) + *p++ = DELIM; strcpy(p, defpath); return buf; } @@ -201,9 +202,7 @@ struct { {0, 0} }; -#ifdef USE_FROZEN -#include "frozen.c" -#else +#ifndef USE_FROZEN struct frozen { char *name; char *code;