diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-24 12:33:06 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-01-24 12:33:06 +0000 |
commit | 0e6366435c48eacf89eef2f3db1459882fd44f83 (patch) | |
tree | 42605e5f1d7aab8bc6836fc48097085cf6f42130 /ACE/ace/Codeset_IBM1047.cpp | |
parent | 958aaffabe92a2ef10acc735faeed8dfd2e0f522 (diff) | |
download | ATCD-0e6366435c48eacf89eef2f3db1459882fd44f83.tar.gz |
Diffstat (limited to 'ACE/ace/Codeset_IBM1047.cpp')
-rw-r--r-- | ACE/ace/Codeset_IBM1047.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ACE/ace/Codeset_IBM1047.cpp b/ACE/ace/Codeset_IBM1047.cpp index f712b01b203..d69857c558c 100644 --- a/ACE/ace/Codeset_IBM1047.cpp +++ b/ACE/ace/Codeset_IBM1047.cpp @@ -25,7 +25,8 @@ ACE_RCSID (ace, Codeset_IBM1047, "$Id$") -// **************************************************************** +#include "ace/OS_Memory.h" +#include "ace/OS_NS_string.h" namespace { @@ -172,7 +173,7 @@ ACE_IBM1047_ISO8859::write_char_array (ACE_OutputCDR& out, const ACE_CDR::Char* x, ACE_CDR::ULong len) { - char *buf; + char *buf = 0; if (this->adjust (out, len, 1, buf) == 0) { ACE_OS::memcpy (buf, x, len); @@ -209,7 +210,6 @@ ACE_ISO8859_IBM1047::tcs () return 0x10020417; } - ACE_CDR::Boolean ACE_ISO8859_IBM1047::read_char (ACE_InputCDR& in, ACE_CDR::Char& x) @@ -291,7 +291,7 @@ ACE_ISO8859_IBM1047::write_char_array (ACE_OutputCDR &out, const ACE_CDR::Char *x, ACE_CDR::ULong len) { - char *buf; + char *buf = 0; if (this->adjust (out, len, 1, buf) == 0) { @@ -309,8 +309,6 @@ ACE_ISO8859_IBM1047::write_char_array (ACE_OutputCDR &out, ACE_END_VERSIONED_NAMESPACE_DECL -// **************************************************************** - #elif defined (__HP_aCC) // Make aC++ stop complaining about an empty translation unit static int const shut_up_aCC = 0; |