Issue #18994: Add a missing check for a return value in fcntmodule. Patch by

Vajrasky Kok.
This commit is contained in:
Charles-François Natali 2013-12-01 14:30:47 +01:00
parent 837a6e012f
commit 5abca14b00
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}