diff options
author | Adam Jackson <ajax@nwnk.net> | 2017-12-05 22:09:06 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2017-12-07 07:20:55 +0100 |
commit | 0a010adfc2717200e3f2acf345ef2802cfaaa146 (patch) | |
tree | d8164b9fb7a6f0616f31af971d8cb3c3f5b0cbae /nx-X11/programs/Xserver | |
parent | 1771deaf134e3e93bf4f3242a6e613b645e96a52 (diff) | |
download | nx-libs-0a010adfc2717200e3f2acf345ef2802cfaaa146.tar.gz nx-libs-0a010adfc2717200e3f2acf345ef2802cfaaa146.tar.bz2 nx-libs-0a010adfc2717200e3f2acf345ef2802cfaaa146.zip |
Coverity # 337: Remove useless NULL check.
Backported from X.org:
Commit 6bb2dc02a7cffd6ed7dd28e88d584920a4150749
Author: Adam Jackson <ajax@nwnk.net>
Date: Wed Mar 15 16:01:47 2006 +0000
Coverity # 337: Remove useless NULL check.
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/miext/cw/cw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/miext/cw/cw.c b/nx-X11/programs/Xserver/miext/cw/cw.c index d9ca55f7e..a45c34dff 100644 --- a/nx-X11/programs/Xserver/miext/cw/cw.c +++ b/nx-X11/programs/Xserver/miext/cw/cw.c @@ -463,7 +463,7 @@ cwPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion, int what) DrawablePtr pBackingDrawable; int x_off, y_off, x_screen, y_screen; - while (pWin && pWin->backgroundState == ParentRelative) + while (pWin->backgroundState == ParentRelative) pWin = pWin->parent; pBackingDrawable = cwGetBackingDrawable((DrawablePtr)pWin, &x_off, |