From 4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Thu, 2 Sep 2010 14:35:58 +0200 Subject: Dead assignments cleanup in various places in SSSD Three assignments deleted, two return code inspection added. Also found and fixed one critical bug caused by dead assignment. Ticket: #590 --- src/util/backup_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/backup_file.c') diff --git a/src/util/backup_file.c b/src/util/backup_file.c index 990793278..fb1604b9e 100644 --- a/src/util/backup_file.c +++ b/src/util/backup_file.c @@ -96,8 +96,8 @@ int backup_file(const char *src_file, int dbglvl) count = num; + pos = 0; while (count > 0) { - pos = 0; errno = 0; num = write(dst_fd, &buf[pos], count); if (num < 0) { -- cgit