Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 4596:4fa19659591e legacy-trunk
Keep gcc -Wall happy.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 05 Dec 1996 23:27:02 +0000 |
| parents | 65d2d8e67da3 |
| children | b82d847b3dcb |
line wrap: on
line diff
--- a/Python/import.c Thu Dec 05 23:18:18 1996 +0000 +++ b/Python/import.c Thu Dec 05 23:27:02 1996 +0000 @@ -53,6 +53,10 @@ #include "macglue.h" #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + extern long getmtime(); /* In getmtime.c */ /* Magic word to reject .pyc files generated by other Python versions */ @@ -419,7 +423,7 @@ FILE **p_fp; { int i, npath, len, namelen; - struct filedescr *fdp; + struct filedescr *fdp = NULL; FILE *fp = NULL; #ifdef MS_COREDLL
