aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2015-08-30 08:38:59 +0000
committerXin LI <delphij@FreeBSD.org>2015-08-30 08:38:59 +0000
commit34a8cde09da07af87aa950ca2c8de831a596f567 (patch)
treeed07cce3ecf619ac7eb23c474ca9646778707357 /libexec
parent3ea917837d922d3d6743fbfb7402f8c2a88767e1 (diff)
downloadsrc-34a8cde09da07af87aa950ca2c8de831a596f567.tar.gz
src-34a8cde09da07af87aa950ca2c8de831a596f567.zip
Don't assign 'ptr' without using it.
Reported by: clang static analyzer MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=287301
Diffstat (limited to 'libexec')
-rw-r--r--libexec/talkd/table.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libexec/talkd/table.c b/libexec/talkd/table.c
index 70b71b2c9be5..e98bfe30337c 100644
--- a/libexec/talkd/table.c
+++ b/libexec/talkd/table.c
@@ -197,7 +197,6 @@ delete_invite(u_int32_t id_num)
{
TABLE_ENTRY *ptr;
- ptr = table;
if (debug)
syslog(LOG_DEBUG, "delete_invite(%d)", id_num);
for (ptr = table; ptr != NIL; ptr = ptr->next) {