Commit ccd67ee1 by kollo

fixed crash w syntax error on INPUT (Jude Osita, 2017-01-04)

parent 3bce7d21
......@@ -823,8 +823,10 @@ int zuweis_string_and_free(const char *name, STRING inhalt) {
}
} else {
vnr=add_variable(r,STRINGTYP,0,V_DYNAMIC,NULL);
free_string(variablen[vnr].pointer.s);
*(variablen[vnr].pointer.s)=inhalt;
if(vnr>=0) { /*Fehlermeldung muesste es danns schon in add_variable gegeben haben.*/
free_string(variablen[vnr].pointer.s);
*(variablen[vnr].pointer.s)=inhalt;
} else free_string(&inhalt);
}
free(r);
return(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment