From 0e8ff11c9360d90916dde51a70af20e2963d79cc Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Wed, 5 Aug 2015 18:57:08 +0200 Subject: [PATCH] src/nhttpd/yhttpd_core/ywebserver.cpp fix possible segfault Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/b9f4f447eec0f480363161f92abfb6dcb5bcf216 Author: Jacek Jendrzej Date: 2015-08-05 (Wed, 05 Aug 2015) --- src/gui/movieplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 9bdd39de5..f65f01796 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -315,7 +315,7 @@ void CMoviePlayerGui::updateLcd() std::string lcd; 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; else name = pretty_name;