projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47b5f58
)
progs/slang: Fix potential null pointer dereference in cltest.c.
author
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 22:22:35 +0000
(14:22 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 17 Nov 2009 22:22:35 +0000
(14:22 -0800)
progs/slang/cltest.c
patch
|
blob
|
history
diff --git
a/progs/slang/cltest.c
b/progs/slang/cltest.c
index 2753f59f85b5477a14882b071946db7e18bc8be7..dfff6cb226a1b8eb7494cdef5360cd6ebd3b3198 100644
(file)
--- 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;