projects
/
dss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
006e53e
)
ipc.c: Remove a dead store.
author
Andre Noll
<maan@tuebingen.mpg.de>
Tue, 14 Nov 2017 02:18:10 +0000
(
03:18
+0100)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 19 Nov 2017 01:53:33 +0000
(
02:53
+0100)
scan-build correctly points out that the value stored to 'name'
is never read.
ipc.c
patch
|
blob
|
history
diff --git
a/ipc.c
b/ipc.c
index f54faa39eb2fee4e3097cddb849910f0fce3f86c..9b38c1318541d24a5686c76eccfc330a3a204177 100644
(file)
--- 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;