]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(copy_dir): Assume path_concat returns non-NULL.
authorJim Meyering <jim@meyering.net>
Sun, 4 Jul 2004 17:46:17 +0000 (17:46 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 4 Jul 2004 17:46:17 +0000 (17:46 +0000)
src/copy.c

index e912d43d5873e279ebb0cf2358f7500aa75ef693..dfdd15bbf68cb396d8ceaa06ee199b2d58f45201 100644 (file)
@@ -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);