mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-26 19:14:34 +02:00
Clean up some warnings from cppcheck static analyzer.
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user