ecore_x: don't go below 0.

It seems that when things go wrong it does happen that we start with i == 0. It
will then have been walking into info[-1] 'happily'. Changing the test, to first
decrement and then compare should stop that issue.

This should @fix T1467.
This commit is contained in:
Cedric BAIL 2014-08-04 11:55:05 +02:00
parent 97dc9cac36
commit fc159fbcae
1 changed files with 1 additions and 1 deletions

View File

@ -2458,7 +2458,7 @@ ecore_x_randr_move_crtcs(Ecore_X_Window root, const Ecore_X_Randr_Crtc *crtcs, i
if (i < ncrtc)
{
/* something went wrong somewhere. move everything back */
while (i-- >= 0)
while ((--i) >= 0)
{
if (info[i])
ecore_x_randr_crtc_settings_set(root, crtcs[i], NULL, -1,