safety net

This commit is contained in:
Enno Rehling 2008-06-17 08:52:56 +00:00
parent ce6fbde53e
commit 3b32b490d7
1 changed files with 3 additions and 0 deletions

View File

@ -390,6 +390,9 @@ translate(const char* format, const void * userdata, const char* vars, variant a
rv = parse_string(&stack, format, userdata);
}
if (rv!=NULL) {
if (rv[0]) {
log_error(("residual data after parsing: %s\n", rv));
}
rv = (const char*)opop(&stack).v;
free(stack->begin);
free(stack);