[Python-checkins] cpython (3.2): start out this branch always with filename NULL

benjamin.peterson python-checkins at python.org
Tue Jul 5 05:23:50 CEST 2011


http://hg.python.org/cpython/rev/7eb85a23cf3d
changeset: 71220:7eb85a23cf3d
branch: 3.2
parent: 71218:95301c58c5d2
user: Benjamin Peterson <benjamin at python.org>
date: Mon Jul 04 22:27:16 2011 -0500
summary:
 start out this branch always with filename NULL
files:
 Python/_warnings.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/_warnings.c b/Python/_warnings.c
--- a/Python/_warnings.c
+++ b/Python/_warnings.c
@@ -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) {
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /