diff options
Diffstat (limited to 'ACE/ace/OS_NS_string.cpp')
-rw-r--r-- | ACE/ace/OS_NS_string.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/OS_NS_string.cpp b/ACE/ace/OS_NS_string.cpp index 9a7f44ab423..be63e28e450 100644 --- a/ACE/ace/OS_NS_string.cpp +++ b/ACE/ace/OS_NS_string.cpp @@ -119,7 +119,7 @@ ACE_OS::strerror (int errnum) // and set errno to EINVAL. ACE_Errno_Guard g (errno); errno = 0; - char *errmsg; + char *errmsg = 0; #if defined (ACE_HAS_TR24731_2005_CRT) errmsg = ret_errortext; @@ -360,7 +360,7 @@ ACE_OS::strtok_r_emulation (ACE_WCHAR_T *s, { ACE_WCHAR_T* sbegin = s ? s : *lasts; sbegin += ACE_OS::strspn(sbegin, tokens); - if (*sbegin == 0) + if (*sbegin == 0) { static ACE_WCHAR_T empty[1] = { 0 }; *lasts = empty; |