diff options
author | Guido van Rossum <guido@python.org> | 1996-11-02 17:31:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-11-02 17:31:22 (GMT) |
commit | 0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed (patch) | |
tree | 7d6106a9f5f240b5c4551cde371aa1167185392c /Modules/timemodule.c | |
parent | 76e47f3d7578f4a438c7627569553ffa9d9b568b (diff) | |
download | cpython-0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed.zip cpython-0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed.tar.gz cpython-0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed.tar.bz2 |
Should compare errno to 0, not NULL
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 2 |
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); |