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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to