[Bf-blender-cvs] [3b68c63] master: OSX/sculpt/omp: missing initialisation of size_t pcount_len, oddly worked fine without on OSX 10.9, fixes < 10.9
Jens Verwiebe
noreply at git.blender.org
Mon Mar 24 13:33:34 CET 2014
Commit: 3b68c6304df968c5d27f7276526f3e407519f247
Author: Jens Verwiebe
Date: Mon Mar 24 13:33:07 2014 +0100
https://developer.blender.org/rB3b68c6304df968c5d27f7276526f3e407519f247
OSX/sculpt/omp: missing initialisation of size_t pcount_len, oddly worked fine without on OSX 10.9, fixes < 10.9
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 6334c16..06a9182 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -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;
}
More information about the Bf-blender-cvs
mailing list