~vanvugt/compiz-core/fix-928655

« back to all changes in this revision

Viewing changes to plugins/resize/src/resize.cpp

  • Committer: smspillaz
  • Author(s): Daniel van Vugt
  • Date: 2012-01-25 13:49:06 UTC
  • mfrom: (2961.3.1 fix-921451)
  • Revision ID: sam.spilsbury@canonical.com-20120125134906-kgjh5oa17o1bkqwu
Fix uninitialized variable warnings in valgrind (LP: #921451)

Merge lp:~vanvugt/compiz-core/fix-921451 into lp:compiz-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
COMPIZ_PLUGIN_20090315 (resize, ResizePluginVTable)
38
38
 
 
39
#define XWINDOWCHANGES_INIT {0, 0, 0, 0, 0, None, 0}
 
40
 
39
41
void
40
42
ResizeScreen::getPaintRectangle (BoxPtr pBox)
41
43
{
571
573
    if (rs->w)
572
574
    {
573
575
        CompWindow     *w = rs->w;
574
 
        XWindowChanges xwc;
 
576
        XWindowChanges xwc = XWINDOWCHANGES_INIT;
575
577
        unsigned int   mask = 0;
576
578
 
577
579
        if (rs->mode == ResizeOptions::ModeNormal)
671
673
    if (w->serverGeometry ().width ()  != geometry.width ||
672
674
        w->serverGeometry ().height () != geometry.height)
673
675
    {
674
 
        XWindowChanges xwc;
 
676
        XWindowChanges xwc = XWINDOWCHANGES_INIT;
675
677
 
676
678
        xwc.x      = geometry.x;
677
679
        xwc.y      = geometry.y;