]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
edit-util: use path_equal
authorMike Yuan <me@yhndnzj.com>
Mon, 13 Mar 2023 02:16:14 +0000 (10:16 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 15 Mar 2023 11:45:33 +0000 (19:45 +0800)
src/shared/edit-util.c

index 0c0e1416fc63e1b01ed6514e645edff80086f5e0..195075ba975d1e1ad49437c63ab843861db775d2 100644 (file)
@@ -50,7 +50,7 @@ bool edit_files_contains(const EditFileContext *context, const char *path) {
         assert(path);
 
         FOREACH_ARRAY(i, context->files, context->n_files)
-                if (streq(i->path, path))
+                if (path_equal(i->path, path))
                         return true;
 
         return false;