diff options
Diffstat (limited to 'Python/getcwd.c')
-rw-r--r-- | Python/getcwd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/getcwd.c b/Python/getcwd.c index 4bedbd1f75..44dc9e69ab 100644 --- a/Python/getcwd.c +++ b/Python/getcwd.c @@ -59,14 +59,13 @@ getcwd(char *buf, int size) { FILE *fp; char *p; - int sts; if (size <= 0) { errno = EINVAL; return NULL; } if ((fp = popen(PWD_CMD, "r")) == NULL) return NULL; - if (fgets(buf, size, fp) == NULL || (sts = pclose(fp)) != 0) { + if (fgets(buf, size, fp) == NULL || pclose(fp) != 0) { errno = EACCES; /* Most likely error */ return NULL; } |