Commit 12897d7d authored by Georg Brandl's avatar Georg Brandl

Fix typo in conditional.

parent a3ed11bd
...@@ -269,7 +269,7 @@ _PyRandom_Init(void) ...@@ -269,7 +269,7 @@ _PyRandom_Init(void)
*/ */
env = Py_GETENV("PYTHONHASHSEED"); env = Py_GETENV("PYTHONHASHSEED");
if (env && *env != '\0' & strcmp(env, "random") != 0) { if (env && *env != '\0' && strcmp(env, "random") != 0) {
char *endptr = env; char *endptr = env;
unsigned long seed; unsigned long seed;
seed = strtoul(env, &endptr, 10); seed = strtoul(env, &endptr, 10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment