Mercurial > cpython-lru_cache-weakref
diff Python/_warnings.c @ 71220:7eb85a23cf3d 3.2
start out this branch always with filename NULL
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 04 Jul 2011 22:27:16 -0500 |
| parents | f0382acebfe6 |
| children | ee0c9ca09c84 aaced3dcb858 |
line wrap: on
line diff
--- a/Python/_warnings.c Mon Jul 04 19:06:20 2011 -0700 +++ b/Python/_warnings.c Mon Jul 04 22:27:16 2011 -0500 @@ -517,7 +517,7 @@ } else { const char *module_str = _PyUnicode_AsString(*module); - Py_XDECREF(*filename); + *filename = NULL; if (module_str == NULL) goto handle_error; if (strcmp(module_str, "__main__") == 0) {
