1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-28 11:29:09 +02:00

(do_link): find_backup_file_name no longer returns NULL, so don't

bother to check for this.
This commit is contained in:
Paul Eggert
2004-07-27 23:14:30 +00:00
parent 53b24fa527
commit 9dfcfc47dc
+1 -4
View File
@@ -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);