From c7a85b182049d36b5d5814ce0629592fc97021ba Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 3 Apr 2018 13:55:10 +0200 Subject: Fix a null pointer dereference in Com_Error. --- src/qcommon/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/qcommon/common.c b/src/qcommon/common.c index 0e466d1b..86d0c135 100644 --- a/src/qcommon/common.c +++ b/src/qcommon/common.c @@ -285,7 +285,7 @@ void QDECL Com_Error( int code, const char *fmt, ... ) { // ERR_DROP causes dedicated servers to enter an inoperable state // instead of crashing completely and being restarted. - if (com_dedicated->integer > 0) + if (com_dedicated && com_dedicated->integer > 0) code = ERR_FATAL; va_start (argptr,fmt); -- cgit