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

index 84370160534a3e5dfe0ac2ba04064095ff93524f..cee915f305c7ef6bb35fb4684f74d915edb1a18d 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -277,8 +277,6 @@ movefile (char *source, char *dest, bool dest_is_dir,
       /* Treat DEST as a directory; build the full filename.  */
       char const *src_basename = base_name (source);
       char *new_dest = path_concat (dest, src_basename, NULL);
-      if (new_dest == NULL)
-       xalloc_die ();
       strip_trailing_slashes (new_dest);
       fail = do_move (source, new_dest, x);
       free (new_dest);