commit | 0b1ff66920a5d7dcdbd1f8f7eb9d26ded5f971ed | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Nov 02 17:31:22 1996 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Nov 02 17:31:22 1996 +0000 |
tree | 7d6106a9f5f240b5c4551cde371aa1167185392c | |
parent | 76e47f3d7578f4a438c7627569553ffa9d9b568b [diff] |
Should compare errno to 0, not NULL
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 @@ p = function(&when); if (p == NULL) { #ifdef EINVAL - if (errno == NULL) + if (errno == 0) errno = EINVAL; #endif return err_errno(IOError);