Changeset 5418:1e8ca708a52f for attach.c

Show
Ignore:
Timestamp:
2008-06-11 22:45:14 (5 months ago)
Author:
Alexey I. Froloff <raorn@…>
Branch:
HEAD
Message:

Do not attempt to close invalid descriptors. Closes #3075

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • attach.c

    r5015 r5418  
    562562          option (OPTWAITKEY))) && !use_pager) 
    563563        mutt_any_key_to_continue (NULL); 
    564        
    565       close(tempfd); 
    566       close(pagerfd); 
    567        
     564 
     565      if (tempfd != -1) 
     566        close (tempfd); 
     567      if (pagerfd != -1) 
     568        close (pagerfd); 
    568569    } 
    569570    else