current client-tags.c,1.10,1.11

Fabian Keil <[email protected]> Mon, 29 May 2017 10:15:17 +0000
Newsgroups gmane.comp.web.privoxy.cvs
Message-ID <[email protected]>
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28873

Modified Files:
	client-tags.c 
Log Message:
remove_tag_for_client(): Remove a harmless 'dead store'

... and make the code easier to understand.


Index: client-tags.c
===================================================================
RCS file: /cvsroot/ijbswa/current/client-tags.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** client-tags.c	20 Feb 2017 13:49:03 -0000	1.10
--- client-tags.c	29 May 2017 10:15:15 -0000	1.11
***************
*** 474,488 ****
                 clients_with_tags->prev->next = clients_with_tags->next;
              }
-             freez(clients_with_tags->client);
              if (clients_with_tags == requested_tags)
              {
!                /* Removing last tag */
!                freez(requested_tags);
!                clients_with_tags = requested_tags;
!             }
!             else
!             {
!                freez(clients_with_tags);
              }
           }
           freez(enabled_tags->name);
--- 474,487 ----
                 clients_with_tags->prev->next = clients_with_tags->next;
              }
              if (clients_with_tags == requested_tags)
              {
!                /*
!                 * We're in the process of removing the last tag,
!                 * mark the global list as empty.
!                 */
!                requested_tags = NULL;
              }
+             freez(clients_with_tags->client);
+             freez(clients_with_tags);
           }
           freez(enabled_tags->name);


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot