Clean up some warnings from cppcheck static analyzer.

This commit is contained in:
Dianne Skoll
2023-02-07 10:28:02 -05:00
parent 6fa500a860
commit 18f21693af
12 changed files with 32 additions and 98 deletions
+2 -1
View File
@@ -126,6 +126,7 @@ int DoFset(ParsePtr p)
}
func->filename = StrDup(FileName);
if (!func->filename) {
free(func);
return E_NO_MEM;
}
func->lineno = LineNo;
@@ -182,7 +183,7 @@ int DoFset(ParsePtr p)
/* Allow an optional = sign: FSET f(x) = x*x */
c = ParseNonSpaceChar(p, &r, 1);
if (c == '=') {
c = ParseNonSpaceChar(p, &r, 0);
(void) ParseNonSpaceChar(p, &r, 0);
}
/* Copy the text over */
if (p->isnested) {