Fixed some uninitialized variables.

This commit is contained in:
dankan1890
2016-11-27 15:38:56 +01:00
parent abe2f0687f
commit a39013afd1
6 changed files with 11 additions and 11 deletions

View File

@@ -195,7 +195,7 @@ namespace nana{ namespace system{
memcpy(addr, buf, size);
::GlobalUnlock(g);
unsigned data_format;
unsigned data_format = 0;
switch(fmt)
{
case format::text: data_format = CF_UNICODETEXT; break;
@@ -239,7 +239,7 @@ namespace nana{ namespace system{
#if defined(NANA_WINDOWS)
if(::OpenClipboard(::GetFocus()))
{
unsigned data_format;
unsigned data_format = 0;
switch(fmt)
{
case format::text: data_format = CF_UNICODETEXT; break;