Fix typo in conditional.

This commit is contained in:
Georg Brandl 2012-02-20 23:49:29 +01:00
parent e5a0e0a75f
commit 91e5c08fe8
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ _PyRandom_Init(void)
*/
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);