summaryrefslogtreecommitdiffstats
path: root/src/basic/chase.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2023-06-02 11:00:48 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-06-06 14:42:03 +0200
commit3c8f449cc84c5c3f583841360271d927d5e384fc (patch)
treefb5a762bfa264c7c614bc3762105257fd1adf596 /src/basic/chase.c
parenttest-chase: Fix comment (diff)
downloadsystemd-3c8f449cc84c5c3f583841360271d927d5e384fc.tar.xz
systemd-3c8f449cc84c5c3f583841360271d927d5e384fc.zip
chase: Allow passing NULL as the empty path to chaseat()
Per coding style, we should accept NULL as the empty path.
Diffstat (limited to 'src/basic/chase.c')
-rw-r--r--src/basic/chase.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/basic/chase.c b/src/basic/chase.c
index 600e2b9d33..5475e8f70d 100644
--- a/src/basic/chase.c
+++ b/src/basic/chase.c
@@ -81,7 +81,6 @@ int chaseat(int dir_fd, const char *path, ChaseFlags flags, char **ret_path, int
const char *todo;
int r;
- assert(path);
assert(!FLAGS_SET(flags, CHASE_PREFIX_ROOT));
assert(!FLAGS_SET(flags, CHASE_STEP|CHASE_EXTRACT_FILENAME));
assert(!FLAGS_SET(flags, CHASE_TRAIL_SLASH|CHASE_EXTRACT_FILENAME));