diff options
author | Pierre Ossman <ossman@cendio.se> | 2012-07-18 14:27:37 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2012-07-18 14:27:37 +0000 |
commit | 02dc813c92d21e0d3f4355f7a4e6e28c0600082a (patch) | |
tree | f3f180f4db7b5e98eb881d3a70181832d335ef09 /unix | |
parent | 87ecc7c4ee61304d55a5ba105c0eea364ddfe8e0 (diff) | |
download | tigervnc-02dc813c92d21e0d3f4355f7a4e6e28c0600082a.tar.gz tigervnc-02dc813c92d21e0d3f4355f7a4e6e28c0600082a.zip |
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
Diffstat (limited to 'unix')
-rw-r--r-- | unix/xserver/hw/vnc/XserverDesktop.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |