mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed bad memory access in case an int token is not set
This commit is contained in:
parent
2ba17dda6a
commit
15feb0e16e
@ -1220,8 +1220,10 @@ char *cTextExpr::DeterminateText(void) {
|
||||
strcat(retVal, str);
|
||||
} else if (t->type == eTexttokenType::inttoken) {
|
||||
int value = tokenContainer->IntToken(t->tokenIndex);
|
||||
cString str = cString::sprintf("%d", value);
|
||||
strcat(retVal, *str);
|
||||
if (value > 0) {
|
||||
cString str = cString::sprintf("%d", value);
|
||||
strcat(retVal, *str);
|
||||
}
|
||||
} else if (t->type == eTexttokenType::looptoken && loopInfo && loopInfo->row >= 0) {
|
||||
char *str = tokenContainer->LoopToken(loopInfo->index, loopInfo->row, t->tokenIndex);
|
||||
if (str)
|
||||
|
Loading…
Reference in New Issue
Block a user