mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
CInfoViewer::showInfoFile -check file size
Signed-off-by: Jacek Jendrzej <crashdvb@googlemail.com>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 6d088357c3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-04-24 (Wed, 24 Apr 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1817,7 +1817,7 @@ void CInfoViewer::showInfoFile()
|
|||||||
std::string infobar_file = "/tmp/infobar.txt";
|
std::string infobar_file = "/tmp/infobar.txt";
|
||||||
|
|
||||||
//exit if file not found, don't create an info object, delete old instance if required
|
//exit if file not found, don't create an info object, delete old instance if required
|
||||||
if (!file_exists(infobar_file.c_str())) {
|
if (!file_size(infobar_file.c_str())) {
|
||||||
if (infobar_txt)
|
if (infobar_txt)
|
||||||
delete infobar_txt;
|
delete infobar_txt;
|
||||||
infobar_txt = NULL;
|
infobar_txt = NULL;
|
||||||
|
Reference in New Issue
Block a user