Fix typo in conditional.

This commit is contained in:
Georg Brandl 2012-02-20 23:49:29 +01:00
parent a3ed11bd34
commit 12897d7d39

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);