summaryrefslogtreecommitdiff
path: root/progs/slang/cltest.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/slang/cltest.c')
-rw-r--r--progs/slang/cltest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/slang/cltest.c b/progs/slang/cltest.c
index 2753f59f85..dfff6cb226 100644
--- a/progs/slang/cltest.c
+++ b/progs/slang/cltest.c
@@ -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;