many: fix remaining check-pointer-deref issues

The updated parsing_hacks.h file uncovered a bunch of extra
things that the check-pointer-deref coccinelle script flags.

This commit fixes them to make the tree check-pointer-deref clean.
This commit is contained in:
Michael Vogt
2026-04-12 15:27:15 +02:00
parent 3c6a713836
commit bd141bd818
126 changed files with 342 additions and 9 deletions
+8
View File
@@ -480,6 +480,8 @@ static int write_temporary_passwd(
int r;
assert(c);
assert(ret_tmpfile);
assert(ret_tmpfile_path);
if (ordered_hashmap_isempty(c->todo_uids))
goto done;
@@ -611,6 +613,8 @@ static int write_temporary_shadow(
int r;
assert(c);
assert(ret_tmpfile);
assert(ret_tmpfile_path);
if (ordered_hashmap_isempty(c->todo_uids))
goto done;
@@ -746,6 +750,8 @@ static int write_temporary_group(
int r;
assert(c);
assert(ret_tmpfile);
assert(ret_tmpfile_path);
if (ordered_hashmap_isempty(c->todo_gids) && ordered_hashmap_isempty(c->members))
goto done;
@@ -863,6 +869,8 @@ static int write_temporary_gshadow(
int r;
assert(c);
assert(ret_tmpfile);
assert(ret_tmpfile_path);
if (ordered_hashmap_isempty(c->todo_gids) && ordered_hashmap_isempty(c->members))
goto done;