diff options
Diffstat (limited to 'source/API/SBPlatform.cpp')
| -rw-r--r-- | source/API/SBPlatform.cpp | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/source/API/SBPlatform.cpp b/source/API/SBPlatform.cpp index 9914852cead7d..d3e769ae675b1 100644 --- a/source/API/SBPlatform.cpp +++ b/source/API/SBPlatform.cpp @@ -269,7 +269,8 @@ SBPlatform::SBPlatform (const char *platform_name) :      m_opaque_sp ()  {      Error error; -    m_opaque_sp = Platform::Create (platform_name, error); +    if (platform_name && platform_name[0]) +        m_opaque_sp = Platform::Create (ConstString(platform_name), error);  }  SBPlatform::~SBPlatform()  | 
