From e8c43357563bc493df281676a7fcb75458e82a83 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 13 Feb 2021 21:12:45 +0100 Subject: [PATCH] attach: convert to strequal() Signed-off-by: Christian Brauner --- src/lxc/attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index afdfa610c..1143d9e39 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -805,7 +805,7 @@ static int lxc_attach_set_environment(struct attach_context *ctx, return -1; } - if (strcmp(extra_keep[i], "PATH") == 0) + if (strequal(extra_keep[i], "PATH")) path_kept = 1; } } -- 2.47.2