From ad16892b2a5dae34682b64a766a6518aa4da3c02 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sun, 13 Sep 2015 20:29:50 +0100 Subject: bindfs_symlink: remove unused real_from. --- src/bindfs.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/bindfs.c b/src/bindfs.c index ef5e46e..3750c08 100644 --- a/src/bindfs.c +++ b/src/bindfs.c @@ -638,31 +638,23 @@ static int bindfs_symlink(const char *from, const char *to) { int res; struct fuse_context *fc; - char *real_from, *real_to; + char *real_to; if (settings.resolve_symlinks) - return -EPERM; - - real_from = process_path(from, false); - if (real_from == NULL) - return -errno; + return -EPERM; real_to = process_path(to, false); - if (real_to == NULL) { - free(real_from); + if (real_to == NULL) return -errno; - } res = symlink(from, real_to); if (res == -1) { - free(real_from); free(real_to); return -errno; } fc = fuse_get_context(); chown_new_file(real_to, fc, &lchown); - free(real_from); free(real_to); return 0; -- cgit v1.2.3