]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-34492: Modules/main.c: Fix copy_wstrlist() (GH-8910) (GH-8922)
authorAlexey Izbyshev <izbyshev@ispras.ru>
Sat, 25 Aug 2018 16:46:58 +0000 (19:46 +0300)
committerVictor Stinner <vstinner@redhat.com>
Sat, 25 Aug 2018 16:46:58 +0000 (18:46 +0200)
commit388bd4bd7622f6781260ed388f7c76b673adb0e1
tree243fa0711cc9cc8996582064f52434ab58ce45aa
parent6dc8f0543749a6cedb548ae3df76547edfd9a6b9
[3.7] bpo-34492: Modules/main.c: Fix copy_wstrlist() (GH-8910) (GH-8922)

* Add missing NULL check reported by Svace static analyzer.
* Fix clear_wstrlist() call on a wrong list.

(cherry picked from commit eb746dbae8b320758ee08f811316d7f283435cc0)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Modules/main.c