mifgetvalue.c: need a copy to allow freeing token

This commit is contained in:
h_vogt 2012-08-19 15:49:24 +02:00
parent 789edee376
commit cb42989204
1 changed files with 2 additions and 2 deletions

View File

@ -301,9 +301,9 @@ static double MIFget_real(char *token, char **err)
static char *MIFget_string(char *token, char **err)
{
char* ctoken = MIFcopy(token);
*err = NULL;
return(token);
return(ctoken);
}