From fabd731b78f9c221cb6f6090308005835d09d67d Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Tue, 30 Oct 2012 18:40:41 +0100 Subject: fixed documentation removed forgotten noepg ifdef fixed cppcheck errors --- dish.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dish.c') diff --git a/dish.c b/dish.c index 662e170..d257d91 100644 --- a/dish.c +++ b/dish.c @@ -56,6 +56,7 @@ namespace SI originalAirDate = 0; programId = NULL; seriesId = NULL; + ratingStr = NULL; } DishDescriptor::~DishDescriptor() @@ -418,7 +419,9 @@ namespace SI str += "]"; } - return str.c_str(); + if (!ratingStr) ratingStr = new char[19]; + if (ratingStr) strcpy(ratingStr,str.c_str()); + return ratingStr; // return isempty(buffer) ? "" : buffer; } -- cgit v1.2.3