Don't create a TLS error buffer if we're just clearing the error

Fixes https://github.com/libsdl-org/SDL/issues/7600
This commit is contained in:
Sam Lantinga 2023-12-16 21:27:44 -08:00
parent 240e7747c8
commit 72b7acfe8a
3 changed files with 18 additions and 6 deletions

View file

@ -44,6 +44,6 @@ typedef struct SDL_error
} SDL_error;
/* Defined in SDL_thread.c */
extern SDL_error *SDL_GetErrBuf(void);
extern SDL_error *SDL_GetErrBuf(SDL_bool create);
#endif /* SDL_error_c_h_ */