Fix android-specific build (use of unassigned variable).
authorAtsushi Eno <atsushieno@veritas-vos-liberabit.com>
Tue, 3 Dec 2013 16:37:38 +0000 (01:37 +0900)
committerAtsushi Eno <atsushieno@veritas-vos-liberabit.com>
Tue, 3 Dec 2013 16:37:38 +0000 (01:37 +0900)
mcs/class/System.Core/System/TimeZoneInfo.Android.cs

index a21edd6c93ee74a1f66de8d7b9fa5cf91d3fa983..aa2ae29974894366959757bf8998765aa8fc8476 100644 (file)
@@ -346,7 +346,7 @@ namespace System {
 
                        static void Fill (Stream stream, byte[] nbuf, int required)
                        {
-                               int read, offset = 0;
+                               int read = 0, offset = 0;
                                while (offset < required && (read = stream.Read (nbuf, offset, required - offset)) > 0)
                                        offset += read;
                                if (read != required)