]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix getpythonpath() fix; never #include frozen.c.
authorGuido van Rossum <guido@python.org>
Wed, 5 Oct 1994 14:48:22 +0000 (14:48 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 5 Oct 1994 14:48:22 +0000 (14:48 +0000)
Modules/config.c.in

index 981a19f8d202effaf58957022e494cf42317ced5..fb8b49bc930979813f86cb931d81d0581418455e 100644 (file)
@@ -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;