]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/core/path.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / core / path.c
index 3a46e44928813912e3b6f19af1c35670c97e51b8..3881c77a868f3c8ed19b7ae820eb51464c0d566f 100644 (file)
@@ -265,7 +265,7 @@ static void path_spec_dump(PathSpec *s, FILE *f, const char *prefix) {
 
 void path_spec_done(PathSpec *s) {
         assert(s);
-        assert(s->inotify_fd == -1);
+        assert(s->inotify_fd == -EBADF);
 
         free(s->path);
 }