commit | 9ce5a835bbb33c8a7f22e8ab4c6c226ecb27b0be | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Oct 03 23:36:02 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Oct 03 23:36:02 2011 +0200 |
tree | 7f91e204d547fc86c83298daf3b672e18cb43af8 | |
parent | b80389535581300295758f3a9b50e9628b77ae3c [diff] |
PyUnicode_Join() checks output length in debug mode PyUnicode_CopyCharacters() may copies less character than requested size, if the input string is smaller than the argument. (This is very unlikely, but who knows!?) Avoid also calling PyUnicode_CopyCharacters() if the string is empty.