Skip to content

Commit e4a5e9b

Browse files
ZackerySpytzvstinner
authored andcommitted
bpo-23878: Remove an unneeded fseek() call in _Py_FindEnvConfigValue() (GH-15424)
1 parent 55aabee commit e4a5e9b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Python/pathconfig.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,6 @@ _Py_FindEnvConfigValue(FILE *env_file, const wchar_t *key,
741741
char buffer[MAXPATHLEN * 2 + 1]; /* allow extra for key, '=', etc. */
742742
buffer[Py_ARRAY_LENGTH(buffer)-1] = '\0';
743743

744-
fseek(env_file, 0, SEEK_SET);
745744
while (!feof(env_file)) {
746745
char * p = fgets(buffer, Py_ARRAY_LENGTH(buffer) - 1, env_file);
747746

0 commit comments

Comments
 (0)