mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
src/nhttpd/yhttpd_core/ywebserver.cpp fix possible segfault
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user