diff options
Diffstat (limited to 'ACE/examples/APG/Threads/Message_Blocks.cpp')
-rw-r--r-- | ACE/examples/APG/Threads/Message_Blocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/examples/APG/Threads/Message_Blocks.cpp b/ACE/examples/APG/Threads/Message_Blocks.cpp index 96cbf3e8cfe..8e4e66d2178 100644 --- a/ACE/examples/APG/Threads/Message_Blocks.cpp +++ b/ACE/examples/APG/Threads/Message_Blocks.cpp @@ -13,7 +13,7 @@ int ACE_TMAIN (int, ACE_TCHAR **) // Just for the book... // Listing 1 code/ch12 - ACE_Message_Block *mb; + ACE_Message_Block *mb = 0; ACE_NEW_RETURN (mb, ACE_Message_Block (128), -1); const char *deviceAddr= "Dev#12"; @@ -21,7 +21,7 @@ int ACE_TMAIN (int, ACE_TCHAR **) // Listing 1 #endif /* 0 */ // Listing 2 code/ch12 - ACE_Message_Block *mb; + ACE_Message_Block *mb = 0; ACE_NEW_RETURN (mb, ACE_Message_Block (128), -1); const char *commandSeq= "CommandSeq#14"; |