commit | 5d95312fb8eb1684879b9fb8c5c928089326d0df | [log] [tgz] |
---|---|---|
author | Zackery Spytz <zspytz@gmail.com> | Thu Nov 08 02:45:00 2018 -0700 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Nov 08 11:45:00 2018 +0200 |
tree | 3f8e094410e3b96b3d7ff9da8e25a0d06d9dcc4e | |
parent | a44d34e17908a49d584f86c4f8642a50707b7150 [diff] |
Replace dead code with an assertion in winreg.c. (GH-10028)
diff --git a/PC/winreg.c b/PC/winreg.c index 4f5a676..c6ad7ab 100644 --- a/PC/winreg.c +++ b/PC/winreg.c
@@ -651,8 +651,7 @@ t = PyList_GET_ITEM(value, j); wstr = PyUnicode_AsUnicodeAndSize(t, &len); - if (wstr == NULL) - return FALSE; + assert(wstr); wcscpy(P, wstr); P += (len + 1); }