diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/XEVI.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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: @@ -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 */ |