From be3b0326d868aed97fc4224dcbf0266c303d2871 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 14 Nov 2017 03:18:10 +0100 Subject: [PATCH] ipc.c: Remove a dead store. scan-build correctly points out that the value stored to 'name' is never read. --- ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc.c b/ipc.c index f54faa3..9b38c13 100644 --- a/ipc.c +++ b/ipc.c @@ -205,7 +205,7 @@ static int dss_realpath(const char *name, char **resolved_path) /* Careful here, end may be a pointer into extra_buf... */ memmove(&extra_buf[n], end, len + 1); - name = end = memcpy(extra_buf, buf, n); + end = memcpy(extra_buf, buf, n); if (buf[0] == '/') /* It's an absolute symlink */ dest = rpath + 1; -- 2.30.2