DtXinerama: no need to check unsigned int < 0 (CID:86121)
This commit is contained in:
@@ -83,7 +83,7 @@ Bool _DtXineramaGetScreen(DtXineramaInfo_t *DtXI, unsigned int screen,
|
|||||||
if (DtXI->numscreens == 0)
|
if (DtXI->numscreens == 0)
|
||||||
return(False); /* no screens or no Xinerama */
|
return(False); /* no screens or no Xinerama */
|
||||||
|
|
||||||
if (screen < 0 || screen >= DtXI->numscreens)
|
if (screen >= DtXI->numscreens)
|
||||||
return(False); /* invalid screen */
|
return(False); /* invalid screen */
|
||||||
|
|
||||||
/* now get the info from the XinerInfo */
|
/* now get the info from the XinerInfo */
|
||||||
|
|||||||
Reference in New Issue
Block a user