version 1.17 | | version 1.18 |
---|
| | |
/* | | /* |
* static char *rcsid_c_party_c = | | * static char *rcsid_c_party_c = |
* "$Id: c_party.c,v 1.17 2005/10/11 20:44:50 cavesomething Exp $"; | | * "$Id: c_party.c,v 1.18 2005/10/11 23:26:32 cavesomething Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
else if (target_party == lastparty) { | | else if (target_party == lastparty) { |
for (tmpparty=firstparty;tmpparty->next!=NULL;tmpparty=tmpparty->next) { | | for (tmpparty=firstparty;tmpparty->next!=NULL;tmpparty=tmpparty->next) { |
if (tmpparty->next=target_party) { | | if (tmpparty->next==target_party) { |
lastparty=tmpparty; | | lastparty=tmpparty; |
if (target_party->partyleader) free(target_party->partyleader); | | if (target_party->partyleader) free(target_party->partyleader); |
if (target_party->partyname) free(target_party->partyname); | | if (target_party->partyname) free(target_party->partyname); |
free(target_party); | | free(target_party); |
| | lastparty->next=NULL; |
return; | | return; |
} | | } |
} | | } |