Ignore:
Timestamp:
06/11/07 10:09:36 (5 years ago)
Author:
wd
Message:

Make the ircd run/take connections properly (there were a handful of bugs in
different places).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/lib/event.c

    r787 r809  
    3333    event_t *ep = NULL; 
    3434         
    35     ep = malloc(sizeof(event_t)); 
     35    ep = calloc(sizeof(event_t), 1); 
    3636    ep->numhooks = 0; 
    3737    ep->flags = flags; 
     
    6565    else 
    6666        returned = hookreturns; 
    67         SLIST_FOREACH(hp, &ep->hooks, lp) { 
     67    SLIST_FOREACH(hp, &ep->hooks, lp) { 
    6868        if (hp->flags & (HOOK_FL_DEFERRED | HOOK_FL_NEW)) { 
    6969            needclean = true; 
Note: See TracChangeset for help on using the changeset viewer.