inperror.c, release errMsg when it has been consumed

This commit is contained in:
rlar 2012-12-15 21:51:59 +01:00
parent cea4eb09d6
commit e67e9da202
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ char *INPerror(int type)
/*CDHW Lots of things set errMsg but it is never used so let's hack it in CDHW*/
if ( errMsg ) {
val = errMsg;
errMsg = NULL;
} else
/*CDHW end of hack CDHW*/
val = copy(SPerror(type));