First set of licensing changes
[mono.git] / mono / utils / mono-proclib.c
index 8f52311aed9c458202dd6b1ebc5b3d2d9231a915..c53af96454a79e84a98239ad450d0e9f8658154d 100644 (file)
@@ -1,6 +1,7 @@
 /*
  * Copyright 2008-2011 Novell Inc
  * Copyright 2011 Xamarin Inc
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
  */
 
 #include "config.h"
@@ -627,6 +628,7 @@ mono_cpu_count (void)
         * means the normal way to query cpu count returns a wrong value with userspace API.
         * Instead we use /sys entries to query the actual hardware CPU count.
         */
+       int count = 0;
        char buffer[8] = {'\0'};
        int present = open ("/sys/devices/system/cpu/present", O_RDONLY);
        /* Format of the /sys entry is a cpulist of indexes which in the case