summaryrefslogtreecommitdiffstats
path: root/sesman/chansrv/rail.c
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-20 16:36:33 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-07-20 16:36:33 -0700
commit0c63a8feb3c52de98a5da51a0a0f743450c34645 (patch)
treecccc68684d5cac4795173a3aaee905de172f8b2f /sesman/chansrv/rail.c
parenta990287c4627ff6b0d3b6a42b06d1f4ce242d918 (diff)
downloadxrdp-proprietary-0c63a8feb3c52de98a5da51a0a0f743450c34645.tar.gz
xrdp-proprietary-0c63a8feb3c52de98a5da51a0a0f743450c34645.zip
coverity: Dereference after null check
Diffstat (limited to 'sesman/chansrv/rail.c')
-rw-r--r--sesman/chansrv/rail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sesman/chansrv/rail.c b/sesman/chansrv/rail.c
index 4d620c00..f3777970 100644
--- a/sesman/chansrv/rail.c
+++ b/sesman/chansrv/rail.c
@@ -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);