progs/slang: Fix potential null pointer dereference in cltest.c.

This commit is contained in:
Vinson Lee 2009-11-17 14:22:35 -08:00
parent 47b5f584a6
commit e8eec93854

View file

@ -237,7 +237,7 @@ void RenderScene (void)
if (p != NULL)
p++;
}
if (*p != '\0')
if (p && *p != '\0')
printf ("*** %s\n", "I/O error");
nextprogram = program->next;