Permalink
Browse files

fixed: return false on empty string

  • Loading branch information...
wsoltys committed Mar 27, 2011
1 parent 5f35e68 commit f0779e90003ad514c385f8a95153efb115f9f96f
Showing with 2 additions and 0 deletions.
  1. +2 −0 xbmc/cores/paplayer/ASAPCodec.cpp
@@ -86,6 +86,8 @@ bool ASAPCodec::CanInit()
bool ASAPCodec::IsSupportedFormat(const CStdString &strExt)
{
+ if(strExt.empty())
+ return false;
CStdString ext = strExt;
if (ext[0] == '.')
ext.erase(0, 1);

0 comments on commit f0779e9

Please sign in to comment.