From 02dc813c92d21e0d3f4355f7a4e6e28c0600082a Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 18 Jul 2012 14:27:37 +0000 Subject: [PATCH] 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 --- unix/xserver/hw/vnc/XserverDesktop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.39.5