[Python-checkins] cpython (3.2): Fix typo in conditional.
georg.brandl
python-checkins at python.org
Mon Feb 20 23:52:16 CET 2012
http://hg.python.org/cpython/rev/ab1886e7fc19
changeset: 75087:ab1886e7fc19
branch: 3.2
user: Georg Brandl <georg at python.org>
date: Mon Feb 20 23:49:29 2012 +0100
summary:
Fix typo in conditional.
files:
Python/random.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/random.c b/Python/random.c
--- a/Python/random.c
+++ b/Python/random.c
@@ -269,7 +269,7 @@
*/
env = Py_GETENV("PYTHONHASHSEED");
- if (env && *env != '\0' & strcmp(env, "random") != 0) {
+ if (env && *env != '\0' && strcmp(env, "random") != 0) {
char *endptr = env;
unsigned long seed;
seed = strtoul(env, &endptr, 10);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list