From e8a1e8cef3bd6d2ee53e1cb418bd561c81957274 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 5 Oct 1994 14:48:22 +0000 Subject: Fix getpythonpath() fix; never #include frozen.c. --- Modules/config.c.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Modules/config.c.in b/Modules/config.c.in index 981a19f..fb8b49b 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; -- cgit v0.12