summaryrefslogtreecommitdiffstats
path: root/progs/slang/cltest.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-17 14:22:35 -0800
committerVinson Lee <[email protected]>2009-11-17 14:22:35 -0800
commite8eec9385497053a4172deeff9c0ff2726a10f3b (patch)
tree82ee463101b16aad7196a6973028da293f915eb9 /progs/slang/cltest.c
parent47b5f584a68ceab7c9c1d5279efbc9fe30ff2fcc (diff)
progs/slang: Fix potential null pointer dereference in cltest.c.
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 2753f59f85b..dfff6cb226a 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;