[PATCH libxkbui] Fix an obvious typo: '&&' -> '&'.

Egbert Eich eich at freedesktop.org
Wed Sep 7 07:48:33 PDT 2011


From: Stefan Dirsch <sndirsch at suse.de>

Found by Marcus Meissner <meissner at suse.de>

Signed-off-by: Egbert Eich <eich at freedesktop.org>
---
 src/XKBui.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/XKBui.c b/src/XKBui.c
index c563efe..90d1eef 100644
--- a/src/XKBui.c
+++ b/src/XKBui.c
@@ -102,7 +102,7 @@ XkbDescPtr	xkb;
 	    char buf[20];
 	    sprintf(buf,"#%02x%02x%02x",(sdef.red>>8)&0xff,
 						(sdef.green>>8)&0xff,
-						(sdef.blue>>8)&&0xff);
+						(sdef.blue>>8)&0xff);
 	    if (XAllocNamedColor(view->dpy,view->opts.cmap,buf,&sdef,&xdef)) {
 		xkb->geom->colors[i].pixel= sdef.pixel;
 #ifdef DEBUG
-- 
1.7.3.4



More information about the xorg-devel mailing list