Skip to content

Commit

Permalink
Don't try to pop an entry from an empty list in SSDP::ProcessData. In…
Browse files Browse the repository at this point in the history
…spired by patch from Lawrence Rust but changed to use IsEmpty() instead of size()
  • Loading branch information
stuartm committed Sep 8, 2013
1 parent 7fa6f23 commit bb6e3a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/libs/libmythupnp/ssdp.cpp
Expand Up @@ -373,7 +373,8 @@ void SSDP::ProcessData( MSocketDevice *pSocket )
QStringList lines = str.split("\r\n", QString::SkipEmptyParts);
QString sRequestLine = lines.size() ? lines[0] : "";

lines.pop_front();
if (!lines.isEmpty())
lines.pop_front();

// ------------------------------------------------------------------
// Parse request Type
Expand Down

0 comments on commit bb6e3a0

Please sign in to comment.