From 0c63a8feb3c52de98a5da51a0a0f743450c34645 Mon Sep 17 00:00:00 2001 From: Laxmikant Rashinkar Date: Sun, 20 Jul 2014 16:36:33 -0700 Subject: coverity: Dereference after null check --- sesman/chansrv/rail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sesman/chansrv/rail.c') 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); -- cgit v1.2.1