aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-11-11 15:08:25 -0600
committerRob Landley <rob@landley.net>2014-11-11 15:08:25 -0600
commit6e087a3a6fb420efc5cb77e13818668212034225 (patch)
tree07b1e83f89bed16415bd11b500ce44459056f38f /lib
parent549010756693647c759a2de4f2d5a81265d7e6cf (diff)
downloadtoybox-6e087a3a6fb420efc5cb77e13818668212034225.tar.gz
Remove unnecessary assignment spotted by Cynt Rynt.
Diffstat (limited to 'lib')
-rw-r--r--lib/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/password.c b/lib/password.c
index 40cbead0..985bd573 100644
--- a/lib/password.c
+++ b/lib/password.c
@@ -156,7 +156,7 @@ int update_password(char *filename, char* username, char* entry)
}
*sfx = '-';
- ret = unlink(filenamesfx);
+ unlink(filenamesfx);
ret = link(filename, filenamesfx);
if (ret < 0) error_msg("can't create backup file");