Add NULL checks to the initializer of the locale module · pythoncapi/cpython@ff4fddd · GitHub
Skip to content

Commit ff4fddd

Browse files
committed
Add NULL checks to the initializer of the locale module
The _locale module was using old-style APIs to set numeric module constants from macros. The new way requires less code and properly checks for NULL. CID 1295027
1 parent 45af0c8 commit ff4fddd

1 file changed

Lines changed: 20 additions & 34 deletions

File tree

Modules/_localemodule.c

Lines changed: 20 additions & 34 deletions

0 commit comments

Comments
 (0)