diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-09-29 12:36:39 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-09-29 12:36:39 +0200 |
commit | a5abceccb2df8931456277f6f572c3dbbe6d8962 (patch) | |
tree | 7d309685e652460cb06d35b92ee2b4aa9f1f0b45 /client/application.cpp | |
parent | c425ed626c19ac5c2401cb8765033dd3e9d558b8 (diff) | |
download | spice-a5abceccb2df8931456277f6f572c3dbbe6d8962.tar.gz spice-a5abceccb2df8931456277f6f572c3dbbe6d8962.tar.xz spice-a5abceccb2df8931456277f6f572c3dbbe6d8962.zip |
Fix warning from OSX compiler
The OSX compiler warns about uninitialized variable, so we change
a bit how size is initialized.
Diffstat (limited to 'client/application.cpp')
-rw-r--r-- | client/application.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/client/application.cpp b/client/application.cpp index 490cd8ca..3bd3330e 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -647,13 +647,10 @@ RedScreen* Application::get_screen(int id) if (!(screen = _screens[id])) { Monitor* mon = find_monitor(id); - SpicePoint size; + SpicePoint size = {SCREEN_INIT_WIDTH, SCREEN_INIT_HEIGHT}; if (_full_screen && mon) { size = mon->get_size(); - } else { - size.x = SCREEN_INIT_WIDTH; - size.y = SCREEN_INIT_HEIGHT; } screen = _screens[id] = new RedScreen(*this, id, _title, size.x, size.y); #ifdef USE_GUI |