coverity: Dereference after null check

This commit is contained in:
Laxmikant Rashinkar
2014-07-20 16:36:33 -07:00
parent a990287c46
commit 0c63a8feb3
8 changed files with 73 additions and 62 deletions
+1 -1
View File
@@ -739,7 +739,7 @@ rail_win_get_state(Window win)
(unsigned char **)&data,
&nitems);
if (data || nitems > 0)
if (data && nitems > 0)
{
rv = *(unsigned long *)data;
XFree(data);