diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-08 20:46:00 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-06-08 20:46:00 +0000 |
commit | ecccc4f9b888ddfba057119e33e03b4c1ffdfe0e (patch) | |
tree | 949d9d7cf82975a5d7d26db038aa079b375130e4 /Python/getcompiler.c | |
parent | 649124856aa994629e574c7a7ecf22d3b07f3ca0 (diff) | |
download | cpython-git-ecccc4f9b888ddfba057119e33e03b4c1ffdfe0e.tar.gz |
sys_pyfile_write() does nothing if file is NULL
mywrite() falls back to the C file object if sys_pyfile_write() returns an
error. This patch fixes a segfault is Py_FatalError() is called in an early
stage of Python initialization.
Diffstat (limited to 'Python/getcompiler.c')
0 files changed, 0 insertions, 0 deletions