Issue #18994: Add a missing check for a return value in fcntmodule. Patch by
Vajrasky Kok.
This commit is contained in:
parent
837a6e012f
commit
5abca14b00
|
@ -628,6 +628,8 @@ PyInit_fcntl(void)
|
|||
return NULL;
|
||||
|
||||
/* Add some symbolic constants to the module */
|
||||
all_ins(m);
|
||||
if (all_ins(m) < 0)
|
||||
return NULL;
|
||||
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue