From: Andre Noll Date: Tue, 14 Nov 2017 02:18:10 +0000 (+0100) Subject: ipc.c: Remove a dead store. X-Git-Tag: v1.0.0~4 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=be3b0326d868aed97fc4224dcbf0266c303d2871;p=dss.git ipc.c: Remove a dead store. scan-build correctly points out that the value stored to 'name' is never read. --- 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;