summaryrefslogtreecommitdiff
path: root/src/qcommon
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-03 13:55:10 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-03 13:55:10 +0200
commitc7a85b182049d36b5d5814ce0629592fc97021ba (patch)
tree7d9fc30ea7fbcbc37f776ee57011510d107af2b0 /src/qcommon
parentb330fb2bb6572409329acb6b9cf3176cb37badfa (diff)
Fix a null pointer dereference in Com_Error.
Diffstat (limited to 'src/qcommon')
-rw-r--r--src/qcommon/common.c2
1 files changed, 1 insertions, 1 deletions
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);