summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-08-28 21:54:02 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-08-28 21:54:02 (GMT)
commite4a5e9b5bb69025eb879cb133259667241d61a1f (patch)
tree472198d96994c56685778c60d8fc27b36c01af9a /Python
parent55aabee07501e1468082b3237620e4ecd75c5da6 (diff)
downloadcpython-e4a5e9b5bb69025eb879cb133259667241d61a1f.zip
cpython-e4a5e9b5bb69025eb879cb133259667241d61a1f.tar.gz
cpython-e4a5e9b5bb69025eb879cb133259667241d61a1f.tar.bz2
bpo-23878: Remove an unneeded fseek() call in _Py_FindEnvConfigValue() (GH-15424)
Diffstat (limited to 'Python')
-rw-r--r--Python/pathconfig.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/pathconfig.c b/Python/pathconfig.c
index 79ec4af..ee22061 100644
--- a/Python/pathconfig.c
+++ b/Python/pathconfig.c
@@ -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);