Issue #27587: Move null pointer check earlier in _PyState_AddModule()
This was found by PVS-Studio: V595 The 'def' pointer was utilized before it was verified against nullptr. Check lines: 286, 292. pystate.c 286 Initial patch by Christian Heimes.
B
Berker Peksag committed
4b7b565c581f8f418df6e661ebf7d906794e7142
Parent: 8447965