Changeset 548:208fbd1acbe0 for buffy.c

Show
Ignore:
Timestamp:
1998-11-10 02:36:27 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Skip empty mailbox parameters. This fixes a segmentation fault
noted by Marco d'Itri.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r465 r548  
    170170    strfcpy (buf, path->data, sizeof (buf)); 
    171171    mutt_expand_path (buf, sizeof (buf)); 
     172 
     173    /* Skip empty tokens. */ 
     174    if(!*buf) continue; 
     175 
    172176    /* simple check to avoid duplicates */ 
    173177    for (tmp = &Incoming; *tmp; tmp = &((*tmp)->next))