Show
Ignore:
Timestamp:
2004-07-13 22:45:18 (4 years ago)
Author:
TAKAHASHI Tamotsu <ttakah@…>
Branch:
HEAD
Message:

Fix Debian#237426. (Experimental.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • browser.c

    r3480 r3691  
    945945            if (S_ISDIR (st.st_mode)) 
    946946            { 
    947               strfcpy (LastDir, buf, sizeof (LastDir)); 
    948947              destroy_state (&state); 
    949               if (examine_directory (menu, &state, LastDir, prefix) == 0) 
    950               { 
    951                 menu->current = 0;  
    952                 menu->top = 0;  
    953                 init_menu (&state, menu, title, sizeof (title), buffy); 
    954               } 
     948              if (examine_directory (menu, &state, buf, prefix) == 0) 
     949                strfcpy (LastDir, buf, sizeof (LastDir)); 
    955950              else 
    956951              { 
    957952                mutt_error _("Error scanning directory."); 
    958                 destroy_state (&state); 
    959                 mutt_menuDestroy (&menu); 
    960                 goto bail; 
     953                if (examine_directory (menu, &state, LastDir, prefix) == -1) 
     954                { 
     955                  mutt_menuDestroy (&menu); 
     956                  goto bail; 
     957                } 
    961958              } 
     959              menu->current = 0;  
     960              menu->top = 0;  
     961              init_menu (&state, menu, title, sizeof (title), buffy); 
    962962            } 
    963963            else