inp.c: avoid crash if setparse() returns NULL

This commit is contained in:
h_vogt 2012-11-04 14:12:03 +01:00
parent 04adbd7d3b
commit 5c4f8946f6
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ inp_dodeck(
else
ct->ci_vars = eev = cp_setparse(wl);
wl_free(wl);
while (eev->va_next)
while (eev && (eev->va_next))
eev = eev->va_next;
}
for (eev = ct->ci_vars; eev; eev = eev->va_next) {