use pclose for pipe

This commit is contained in:
Richard Quirk
2015-07-25 14:49:57 +02:00
parent 86ad49c1b0
commit 34af5c2465

2
file.c
View File

@@ -8540,7 +8540,7 @@ lessopen_stream(char *path)
}
c = getc(fp);
if (c == EOF) {
fclose(fp);
pclose(fp);
return NULL;
}
ungetc(c, fp);