Fix some error messages.

This commit is contained in:
Dianne Skoll
2024-06-03 17:59:11 -04:00
parent ee179ee2f5
commit 0e010b56ec
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -235,6 +235,12 @@ int DoFset(ParsePtr p)
return r;
}
c = ParseNonSpaceChar(p, &r, 1);
if (c != 0) {
DestroyUserFunc(func);
return E_EXPECTING_EOL;
}
/* Save the argument names */
if (func->nargs) {
func->args = calloc(sizeof(char *), func->nargs);