From: Jim Meyering Date: Sun, 4 Jul 2004 17:46:17 +0000 (+0000) Subject: (copy_dir): Assume path_concat returns non-NULL. X-Git-Tag: v5.3.0~1170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aead5906dccb1740ed3fa2b89e09448542c89005;p=thirdparty%2Fcoreutils.git (copy_dir): Assume path_concat returns non-NULL. --- diff --git a/src/copy.c b/src/copy.c index e912d43d58..dfdd15bbf6 100644 --- a/src/copy.c +++ b/src/copy.c @@ -172,9 +172,6 @@ copy_dir (const char *src_path_in, const char *dst_path_in, int new_dst, char *src_path = path_concat (src_path_in, namep, NULL); char *dst_path = path_concat (dst_path_in, namep, NULL); - if (dst_path == NULL || src_path == NULL) - xalloc_die (); - ret |= copy_internal (src_path, dst_path, new_dst, src_sb->st_dev, ancestors, &non_command_line_options, 0, &local_copy_into_self, NULL);