On Thu, 13 Jul 2000, Andi Kleen wrote:
> The original poster passed it a NULL pointer though, not a random pointer.
> It would be certainly reasonable to check for NULL pointer in fclose,
> similar to free()
It seems to me that the argument is about
fclose(fp);
fclose(fp);
In no way is it possible for fp to be set to NULL by fclose so it will
indeed be a "random" pointer in the second call in this case.
William Astle
"Floppity, floppity, flip / The mouse on the mobius strip; / The strip
revolved, / The mouse dissolved / In a chronodimensional skip."
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/M/S d- s+:+ !a C++ UL++++$ P++ L+++ !E W++ !N w--- !O !M PS PE V-- Y+
PGP t+@ 5++ X !R tv+@ b+++@ !DI D? G e++ h+ y?
------END GEEK CODE BLOCK------
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:17 EST