summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/crashlog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp
index fd8469f17..28b45e11b 100644
--- a/src/crashlog.cpp
+++ b/src/crashlog.cpp
@@ -172,8 +172,10 @@ char *CrashLog::LogLibraries(char *buffer, const char *last) const
#endif /* WITH_PNG */
#ifdef WITH_SDL
- const SDL_version *v = SDL_CALL SDL_Linked_Version();
- buffer += seprintf(buffer, last, " SDL: %d.%d.%d\n", v->major, v->minor, v->patch);
+ if (SDL_CALL SDL_Linked_Version != NULL) {
+ const SDL_version *v = SDL_CALL SDL_Linked_Version();
+ buffer += seprintf(buffer, last, " SDL: %d.%d.%d\n", v->major, v->minor, v->patch);
+ }
#endif /* WITH_SDL */
buffer += seprintf(buffer, last, "\n");