Peter Lafreniere 3da2e15e6b IOFile: avoid clearing errors on null file struct
When performing a default compilation with recent GCC & glibc,
the use of -Werror=nonnull causes a build error.

The error is given as IOFile::ClearError() can call std::clearerr()
with a null file, which can trigger a null-pointer dereference in libc.

Change the std::clearerr() call to be conditional on a file being open.
2024-02-11 20:55:31 -05:00
..
2023-11-27 21:38:43 +01:00
2023-12-12 13:24:40 -05:00
2023-06-29 02:35:44 -05:00
2023-03-02 19:54:15 -06:00
2022-01-02 14:39:34 -08:00
2023-11-03 16:15:04 +01:00
2023-11-03 16:15:04 +01:00
2023-06-06 22:49:53 -05:00
2022-01-02 15:36:47 -08:00
2023-01-10 05:17:43 -08:00
2023-11-28 23:03:26 +11:00
2023-09-21 01:19:23 +02:00
2023-09-21 01:19:23 +02:00
2023-12-01 19:52:21 +01:00
2022-07-25 18:32:16 -07:00
2023-09-21 01:19:23 +02:00
2023-04-29 19:21:48 -04:00
2023-02-28 20:29:46 +01:00
2023-04-05 19:01:11 -07:00