Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8a1e8c

Browse files
committed
Fix getpythonpath() fix; never #include frozen.c.
1 parent 6e890b8 commit e8a1e8c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Modules/config.c.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ getpythonpath()
167167
fatal("not enough memory to copy module search path");
168168
strcpy(buf, path);
169169
p = buf + strlen(buf);
170-
*p++ = DELIM;
170+
if (p != buf)
171+
*p++ = DELIM;
171172
strcpy(p, defpath);
172173
return buf;
173174
}
@@ -201,9 +202,7 @@ struct {
201202
{0, 0}
202203
};
203204

204-
#ifdef USE_FROZEN
205-
#include "frozen.c"
206-
#else
205+
#ifndef USE_FROZEN
207206
struct frozen {
208207
char *name;
209208
char *code;

0 commit comments

Comments
 (0)