src/nhttpd/yhttpd_core/ywebserver.cpp fix possible segfault

Origin commit data
------------------
Branch: ni/coolstream
Commit: b9f4f447ee
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-08-05 (Wed, 05 Aug 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2015-08-05 18:57:08 +02:00
parent 7e79e16988
commit 82158cce91

View File

@@ -315,7 +315,7 @@ void CMoviePlayerGui::updateLcd()
std::string lcd; std::string lcd;
std::string name; std::string name;
if (isMovieBrowser && strlen(p_movie_info->epgTitle.c_str()) && strncmp(p_movie_info->epgTitle.c_str(), "not", 3)) if (isMovieBrowser && p_movie_info && !p_movie_info->epgTitle.empty() && p_movie_info->epgTitle.size() && strncmp(p_movie_info->epgTitle.c_str(), "not", 3))
name = p_movie_info->epgTitle; name = p_movie_info->epgTitle;
else else
name = pretty_name; name = pretty_name;