diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-09-22 23:27:48 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-09-22 23:27:48 +0000 |
commit | f091c77f8828062384e1843c00aa9a2d0d38fe96 (patch) | |
tree | 4e0f694b5722686bc100004ef4fb82be80f2e2cd /ACE/ace/OS_NS_unistd.cpp | |
parent | 78ad1970d971bb9fb3627196e49111cf3689359d (diff) | |
download | ATCD-f091c77f8828062384e1843c00aa9a2d0d38fe96.tar.gz |
Mon Sep 22 23:18:36 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/OS_NS_unistd.cpp')
-rw-r--r-- | ACE/ace/OS_NS_unistd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/OS_NS_unistd.cpp b/ACE/ace/OS_NS_unistd.cpp index db6fdede10d..115c7987bec 100644 --- a/ACE/ace/OS_NS_unistd.cpp +++ b/ACE/ace/OS_NS_unistd.cpp @@ -381,7 +381,7 @@ ACE_OS::num_processors (void) #elif defined (_SC_NPROCESSORS_CONF) return ::sysconf (_SC_NPROCESSORS_CONF); #elif defined (ACE_HAS_SYSCTL) - int num_processors; + int num_processors = 0; int mib[2] = { CTL_HW, HW_NCPU }; size_t len = sizeof (num_processors); if (::sysctl (mib, 2, &num_processors, &len, 0, 0) != -1) |