summaryrefslogtreecommitdiff
path: root/dish.c
diff options
context:
space:
mode:
Diffstat (limited to 'dish.c')
-rw-r--r--dish.c5
1 files changed, 4 insertions, 1 deletions
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;
}