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
@@ -1915,7 +1915,7 @@ static int build_environment(
* to inherit the $TERM set for PID 1. This is useful for containers so that the $TERM the
* container manager passes to PID 1 ends up all the way in the console login shown. */
if (path_equal_ptr(tty_path, "/dev/console") && getppid() == 1)
if (path_equal(tty_path, "/dev/console") && getppid() == 1)
term = getenv("TERM");
else if (tty_path && in_charset(skip_dev_prefix(tty_path), ALPHANUMERICAL)) {
_cleanup_free_ char *key = NULL;