tree-wide: use ASSERT_PTR more
This commit is contained in:
@@ -281,13 +281,12 @@ int bind_mount_parse(CustomMount **l, size_t *n, const char *s, bool read_only)
|
||||
|
||||
int tmpfs_mount_parse(CustomMount **l, size_t *n, const char *s) {
|
||||
_cleanup_free_ char *path = NULL, *opts = NULL;
|
||||
const char *p = s;
|
||||
const char *p = ASSERT_PTR(s);
|
||||
CustomMount *m;
|
||||
int r;
|
||||
|
||||
assert(l);
|
||||
assert(n);
|
||||
assert(s);
|
||||
|
||||
r = extract_first_word(&p, &path, ":", EXTRACT_DONT_COALESCE_SEPARATORS);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user