mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
src: fix issues reported by clang-tidy
Some of those are simply ignored as they're false positives.
This commit is contained in:
@@ -396,7 +396,11 @@ static int e_keyexists(context_t *ctx, int lineno)
|
||||
|
||||
static void *expand(void *p, int sz, int newsz)
|
||||
{
|
||||
void *s = MALLOC(newsz);
|
||||
void *s;
|
||||
if (!p)
|
||||
return 0;
|
||||
|
||||
s = MALLOC(newsz);
|
||||
if (!s)
|
||||
return 0;
|
||||
|
||||
@@ -1499,7 +1503,6 @@ toml_table_t *toml_parse_file(FILE *fp, char *errbuf, int errbufsz)
|
||||
return 0;
|
||||
}
|
||||
buf = x;
|
||||
bufsz = xsz;
|
||||
}
|
||||
buf[off] = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user