summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-07-27 23:14:30 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-07-27 23:14:30 +0000
commit9dfcfc47dc388089f5e38d6fb7f45ef231ee0ed9 (patch)
tree67624706e8e09a4ebcd3e0475c1d48ef63c3bdfa
parent53b24fa527fdedcb337a9cc59eb7fbcff5a2fc84 (diff)
downloadcoreutils-9dfcfc47dc388089f5e38d6fb7f45ef231ee0ed9.tar.xz
(do_link): find_backup_file_name no longer returns NULL, so don't
bother to check for this.
-rw-r--r--src/ln.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ln.c b/src/ln.c
index 97a962af0..72d50fd62 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -255,11 +255,8 @@ do_link (const char *source, const char *dest, bool dest_is_dir)
if (backup_type != none)
{
- size_t buf_len;
char *tmp_backup = find_backup_file_name (dest, backup_type);
- if (tmp_backup == NULL)
- xalloc_die ();
- buf_len = strlen (tmp_backup) + 1;
+ size_t buf_len = strlen (tmp_backup) + 1;
dest_backup = alloca (buf_len);
memcpy (dest_backup, tmp_backup, buf_len);
free (tmp_backup);