19 lines
258 B
Diff
19 lines
258 B
Diff
|
--- test/fpurge.c
|
||
|
+++ test/fpurge.c
|
||
|
@@ -29,15 +29,11 @@
|
||
|
int
|
||
|
main()
|
||
|
{
|
||
|
- static FILE fp_bad;
|
||
|
FILE *fp;
|
||
|
|
||
|
if (fpurge(NULL) == 0)
|
||
|
return 1;
|
||
|
|
||
|
- if (fpurge(&fp_bad) == 0)
|
||
|
- return 1;
|
||
|
-
|
||
|
fp = fopen("/dev/zero", "r");
|
||
|
if (fpurge(fp) < 0)
|
||
|
return 1;
|