Initialize value for correct counting of # cpu on macosx

SVN revision: 43571
This commit is contained in:
Raoul HECKY 2009-11-09 10:39:49 +00:00
parent 5e5ee2eca2
commit 279e0dde28
1 changed files with 1 additions and 1 deletions

View File

@ -149,8 +149,8 @@ EAPI int eina_cpu_count(void)
# elif defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || defined (__DragonFly__) || defined (__MacOSX__) || ( defined (__MACH__) && defined (__APPLE__))
int mib[4];
size_t len;
int cpus;
size_t len = sizeof(cpus);
mib[0] = CTL_HW;
#ifdef HW_AVAILCPU