From: Pierre Ossman Date: Wed, 18 Jul 2012 14:27:37 +0000 (+0000) Subject: Forgot to initialise the iterator index properly. X-Git-Tag: v1.2.90~147 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=02dc813c92d21e0d3f4355f7a4e6e28c0600082a;p=tigervnc.git Forgot to initialise the iterator index properly. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4938 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc index 2e14bcfc..8606dcce 100644 --- a/unix/xserver/hw/vnc/XserverDesktop.cc +++ b/unix/xserver/hw/vnc/XserverDesktop.cc @@ -296,7 +296,7 @@ RRModePtr XserverDesktop::findRandRMode(RROutputPtr output, int width, int heigh { RRModePtr mode; - for (int i;i < output->numModes;i++) { + for (int i = 0;i < output->numModes;i++) { if ((output->modes[i]->mode.width == width) && (output->modes[i]->mode.height == height)) return output->modes[i];