1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

DtXinerama: no need to check unsigned int < 0 (CID:86121)

This commit is contained in:
Jon Trulson 2014-12-27 14:12:29 -07:00
parent 61e925f3c5
commit 7484c6f88b

View file

@ -83,7 +83,7 @@ Bool _DtXineramaGetScreen(DtXineramaInfo_t *DtXI, unsigned int screen,
if (DtXI->numscreens == 0)
return(False); /* no screens or no Xinerama */
if (screen < 0 || screen >= DtXI->numscreens)
if (screen >= DtXI->numscreens)
return(False); /* invalid screen */
/* now get the info from the XinerInfo */