mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
progs/slang: Fix potential null pointer dereference in cltest.c.
This commit is contained in:
parent
47b5f584a6
commit
e8eec93854
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue