summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Modules/fcntlmodule.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c
index e54c8e042a..79d292f1ae 100644
--- a/Modules/fcntlmodule.c
+++ b/Modules/fcntlmodule.c
@@ -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;
}