aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-01-31 08:42:07 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-01-31 12:07:39 -0800
commit836617fa127faf470d78866edbaf745c1709320a (patch)
tree0d81403a2c462a44a96c20a9c81276e1143f36b9
parentchown: simplify -fsanitize=leak pacification (diff)
downloadcoreutils-836617fa127faf470d78866edbaf745c1709320a.tar.gz
coreutils-836617fa127faf470d78866edbaf745c1709320a.zip
cp: simplify GCC pacification
* src/cp.c (make_dir_parents_private): Remove IF_LINT code that is no longer needed, as GCC has apparently gotten smarter since 2008.
-rw-r--r--src/cp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cp.c b/src/cp.c
index 5084037f1..b73f2cb49 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -404,7 +404,7 @@ make_dir_parents_private (char const *const_dir, size_t src_offset,
while ((slash = strchr (slash, '/')))
{
- struct dir_attr *new IF_LINT ( = NULL);
+ struct dir_attr *new;
bool missing_dir;
*slash = '\0';