make sure the server doesn't seg if an info cvar is set early

This commit is contained in:
Bill Currie 2000-12-19 00:57:30 +00:00
parent fea862d434
commit 9f0035bdf9

View file

@ -51,7 +51,7 @@ Cvar_Info (cvar_t *var)
if (var->flags & CVAR_SERVERINFO) {
unsigned char info[1024], *p, *c;
if (!sv_highchars->int_val) {
if (!sv_highchars || !sv_highchars->int_val) {
for (p = info, c = var->string;
*c && (p - info < sizeof (info) - 1);) {
*c &= 0x7f;