summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2006-04-03 00:55:03 +0000
committerAdam Jackson <ajax@nwnk.net>2006-04-03 00:55:03 +0000
commit01e915b2775b78d461c873bac1b2787985196a5f (patch)
tree9e83f8d1e245df2f41e627d8f350881638824a1b
parent1225f28f6ef0712c9adf52edd8b1a3205bbc76b2 (diff)
downloadxorg-lib-libXext-01e915b2775b78d461c873bac1b2787985196a5f.tar.gz
Coverity #929: Additional defensive NULL check.XORG-7_0_99_901
-rw-r--r--ChangeLog3
-rw-r--r--src/XEVI.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b481e9..318303f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,9 @@
* src/Xdbe.c:
Coverity #575: Plug a leak on the error path.
+ * src/XEVI.c:
+ Coverity #929: Additional defensive NULL check.
+
2006-02-12 Alan Coopersmith <alan.coopersmith@sun.com>
* man/Makefile.am:
diff --git a/src/XEVI.c b/src/XEVI.c
index a64b9c1..dd796a4 100644
--- a/src/XEVI.c
+++ b/src/XEVI.c
@@ -120,7 +120,7 @@ Status XeviGetVisualInfo(
*n_info_return = 0;
*evi_return = NULL;
vinfo = XGetVisualInfo(dpy, 0, NULL, &sz_info);
- if (!vinfo) {
+ if (!vinfo || !evi_return) {
return BadValue;
}
if (!n_visual || !visual) { /* copy the all visual */