Permalink
Browse files

MediaPortal pvr addon: fixed: potential segfault on NULL pointer

  • Loading branch information...
margro committed Dec 31, 2011
1 parent aff3c8f commit a2c7685b4e58fa6876cc3606be16159bb2a91d2f
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/pvrclients/MediaPortal/client.cpp
@@ -467,7 +467,10 @@ PVR_ERROR GetStreamProperties(PVR_STREAM_PROPERTIES *pProperties)
//-----------------------------------------------------------------------------
const char * GetBackendName(void)
{
- return g_client->GetBackendName();
+ if (g_client)
+ return g_client->GetBackendName();
+ else
+ return "";
}
//-- GetBackendVersion --------------------------------------------------------

0 comments on commit a2c7685

Please sign in to comment.