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

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