error message even if pNAME is not defined

This commit is contained in:
Holger Vogt 2020-01-05 14:32:34 +01:00
parent bb26062b14
commit e1be1ace77
1 changed files with 5 additions and 2 deletions

View File

@ -1151,7 +1151,7 @@ measure_parse_stdParams(
)
{
int pCnt;
char *p, *pName, *pValue;
char *p, *pName = NULL, *pValue;
double engVal1;
pCnt = 0;
@ -1216,7 +1216,10 @@ measure_parse_stdParams(
}
if (pCnt == 0) {
sprintf(errbuf, "bad syntax of %s\n", pName);
if (pName)
sprintf(errbuf, "bad syntax of %s\n", pName);
else
sprintf(errbuf, "bad syntax of\n");
return 0;
}