PR_SetString doesn't like null pointers, it seems. While fixing

PR_SetString would be a better fix, this is faster code.
This commit is contained in:
Bill Currie 2003-04-24 04:57:30 +00:00
parent 2a127dd702
commit e16a211e1f

View file

@ -154,7 +154,10 @@ bi_Qgetline (progs_t *pr)
const char *s;
s = Qgetline (*h);
RETURN_STRING (pr, s);
if (s)
RETURN_STRING (pr, s);
else
R_STRING (pr) = 0;
}
static void