Drop unnecessary path_equal_ptr() wrapper

path_equal already works with NULL pointers.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2024-03-23 13:21:06 +01:00
parent 1df021927f
commit 1934242b72
9 changed files with 36 additions and 38 deletions
+1 -1
View File
@@ -1642,7 +1642,7 @@ static int item_equivalent(Item *a, Item *b) {
const char *a_shell = pick_shell(a),
*b_shell = pick_shell(b);
if (!path_equal_ptr(a_shell, b_shell) &&
if (!path_equal(a_shell, b_shell) &&
!(is_nologin_shell(a_shell) && is_nologin_shell(b_shell))) {
_cleanup_free_ char *pa = NULL, *pb = NULL;