svn commit: r287301 - head/libexec/talkd

Xin LI delphij at FreeBSD.org
Sun Aug 30 08:39:00 UTC 2015


Author: delphij
Date: Sun Aug 30 08:38:59 2015
New Revision: 287301
URL: https://svnweb.freebsd.org/changeset/base/287301

Log:
  Don't assign 'ptr' without using it.
  
  Reported by:	clang static analyzer
  MFC after:	2 weeks

Modified:
  head/libexec/talkd/table.c

Modified: head/libexec/talkd/table.c
==============================================================================
--- head/libexec/talkd/table.c	Sun Aug 30 04:46:44 2015	(r287300)
+++ head/libexec/talkd/table.c	Sun Aug 30 08:38:59 2015	(r287301)
@@ -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) {


More information about the svn-src-all mailing list