diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 6334c167a02..06a918252c2 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; }