summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-11-02 17:31:22 (GMT)
committerGuido van Rossum <guido@python.org>1996-11-02 17:31:22 (GMT)
commit0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed (patch)
tree7d6106a9f5f240b5c4551cde371aa1167185392c /Modules
parent76e47f3d7578f4a438c7627569553ffa9d9b568b (diff)
downloadcpython-0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed.zip
cpython-0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed.tar.gz
cpython-0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed.tar.bz2
Should compare errno to 0, not NULL
Diffstat (limited to 'Modules')
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 3aca3a5..2d42dc0 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -147,7 +147,7 @@ time_convert(when, function)
p = function(&when);
if (p == NULL) {
#ifdef EINVAL
- if (errno == NULL)
+ if (errno == 0)
errno = EINVAL;
#endif
return err_errno(IOError);