OSX/sculpt/omp: missing initialisation of size_t pcount_len, oddly worked fine without on OSX 10.9, fixes < 10.9

This commit is contained in:
jens verwiebe 2014-03-24 13:33:07 +01:00
parent 83f2012300
commit 3b68c6304d
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ int system_physical_thread_count(void); // declaration here for simplification
int system_physical_thread_count(void)
{
int pcount;
size_t pcount_len;
size_t pcount_len = sizeof(pcount);
sysctlbyname("hw.physicalcpu", &pcount, &pcount_len, NULL, 0);
return pcount;
}