summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2010-09-02 14:35:58 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-09-08 09:36:22 -0400
commit4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619 (patch)
treeb75a38b0012a84fc89419095c0ab2d392a2ed490 /src/util
parent039d997b19cffa2f5428bb3d85669ebc5888307a (diff)
downloadsssd-4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619.tar.gz
sssd-4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619.tar.xz
sssd-4f6a396fcf16f97b2abc3d0cba10e9aa9bc38619.zip
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
Diffstat (limited to 'src/util')
-rw-r--r--src/util/backup_file.c2
1 files changed, 1 insertions, 1 deletions
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) {