]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: convert to strequal()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 13 Feb 2021 20:12:45 +0000 (21:12 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 13 Feb 2021 20:12:45 +0000 (21:12 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index afdfa610ce8dfe473e78cb2533e3252781d91ca1..1143d9e39a5048f58663b4c2551c7e530fe0b572 100644 (file)
@@ -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;
                                }
                        }