diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-07-04 22:27:16 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-07-04 22:27:16 -0500 |
commit | ab14a9f18cd58ac72951f120fbe936fe78ffdc96 (patch) | |
tree | 0415da8624ae0d77fd9d5d7efeccb0b1cb607d44 /Python/_warnings.c | |
parent | 71870230134e92d831ee1b2e4cbd971ed37a0aa2 (diff) | |
download | cpython-ab14a9f18cd58ac72951f120fbe936fe78ffdc96.tar.gz |
start out this branch always with filename NULL
Diffstat (limited to 'Python/_warnings.c')
-rw-r--r-- | Python/_warnings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c index 99f6071a0c..615a2d3217 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -517,7 +517,7 @@ setup_context(Py_ssize_t stack_level, PyObject **filename, int *lineno, } 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) { |