diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-03 00:55:03 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-03 00:55:03 +0000 |
commit | 01e915b2775b78d461c873bac1b2787985196a5f (patch) | |
tree | 9e83f8d1e245df2f41e627d8f350881638824a1b | |
parent | 1225f28f6ef0712c9adf52edd8b1a3205bbc76b2 (diff) |
Coverity #929: Additional defensive NULL check.XORG-7_0_99_901
-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 */ |