diff options
author | Vinson Lee <[email protected]> | 2009-11-17 14:22:35 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-11-17 14:22:35 -0800 |
commit | e8eec9385497053a4172deeff9c0ff2726a10f3b (patch) | |
tree | 82ee463101b16aad7196a6973028da293f915eb9 /progs/slang | |
parent | 47b5f584a68ceab7c9c1d5279efbc9fe30ff2fcc (diff) |
progs/slang: Fix potential null pointer dereference in cltest.c.
Diffstat (limited to 'progs/slang')
-rw-r--r-- | progs/slang/cltest.c | 2 |
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; |