Skip to content

Commit

Permalink
Fix for ODBC-157. Internal Buffer of ConvertingString is not initialised
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpotapchenko committed Dec 14, 2012
1 parent 560362f commit b54f88f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MainUnicode.cpp
Expand Up @@ -218,7 +218,10 @@ class ConvertingString
{
case BYTESCHARS:
if ( lengthString )
{
byteString = new SQLCHAR[ lengthString + 2 ];
memset(byteString, 0, lengthString + 2);
}
else
byteString = NULL;
break;
Expand Down

0 comments on commit b54f88f

Please sign in to comment.