Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsancheolz <sancheolz@gmail.com>2019-03-16 10:02:36 +0300
committerMarek Safar <marek.safar@gmail.com>2019-03-16 12:30:49 +0300
commit1ca9fcc201f8da19eab93b0a3f7afca8a160ea69 (patch)
tree1c4576a8eb2c53a91b97da5b42c0de30cf1fa1ff /mcs/class/System.Windows.Forms
parentf278deee46ff2f64213e5fd2831b383aee3f99c9 (diff)
Fix local variable assign
Local variable must be assigned before use
Diffstat (limited to 'mcs/class/System.Windows.Forms')
-rw-r--r--mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs b/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs
index ec3f8a19c97..d271bb64ce3 100644
--- a/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs
+++ b/mcs/class/System.Windows.Forms/System.Windows.Forms/SplitContainer.cs
@@ -395,7 +395,7 @@ namespace System.Windows.Forms
if (value < panel1_min_size)
value = panel1_min_size;
- bool updated;
+ bool updated = false;
if (orientation == Orientation.Vertical) {
if (this.Width - (this.SplitterWidth + value) < panel2_min_size)
value = this.Width - (this.SplitterWidth + panel2_min_size);