diff options
author | Guido van Rossum <guido@python.org> | 1994-10-05 14:48:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-10-05 14:48:22 (GMT) |
commit | e8a1e8cef3bd6d2ee53e1cb418bd561c81957274 (patch) | |
tree | 0a6c2c90cba2f9a7e5b6f72628144f587b94dc8b /Modules | |
parent | 6e890b86a87b36b148d802b03e0ab55d471cfd74 (diff) | |
download | cpython-e8a1e8cef3bd6d2ee53e1cb418bd561c81957274.zip cpython-e8a1e8cef3bd6d2ee53e1cb418bd561c81957274.tar.gz cpython-e8a1e8cef3bd6d2ee53e1cb418bd561c81957274.tar.bz2 |
Fix getpythonpath() fix; never #include frozen.c.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/config.c.in | 7 |
1 files 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; |