bpo-23878: Remove an unneeded fseek() call in _Py_FindEnvConfigValue() (GH-15424)

This commit is contained in:
Zackery Spytz 2019-08-28 15:54:02 -06:00 committed by Victor Stinner
parent 55aabee075
commit e4a5e9b5bb
1 changed files with 0 additions and 1 deletions

View File

@ -741,7 +741,6 @@ _Py_FindEnvConfigValue(FILE *env_file, const wchar_t *key,
char buffer[MAXPATHLEN * 2 + 1]; /* allow extra for key, '=', etc. */
buffer[Py_ARRAY_LENGTH(buffer)-1] = '\0';
fseek(env_file, 0, SEEK_SET);
while (!feof(env_file)) {
char * p = fgets(buffer, Py_ARRAY_LENGTH(buffer) - 1, env_file);