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

Vajrasky Kok.
parent 8df3807f
...@@ -628,6 +628,8 @@ PyInit_fcntl(void) ...@@ -628,6 +628,8 @@ PyInit_fcntl(void)
return NULL; return NULL;
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
all_ins(m); if (all_ins(m) < 0)
return NULL;
return m; return m;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment