Ignore:
Timestamp:
Nov 5, 2016, 9:04:45 PM (9 years ago)
Author:
bird
Message:

fts-nt.c: cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/nt/fts-nt.c

    r3001 r3002  
    749749         * could do them in fts_read before returning the path, but it's a
    750750         * lot easier here since the length is part of the dirent structure.
    751          *
    752          * If not changing directories set a pointer so that can just append
    753          * each new name into the path.
    754751         */
    755752        if (sp->fts_options & FTS_NO_ANSI) {
     
    757754        } else {
    758755                len = NAPPEND(cur);
    759                 sp->fts_path[len] = '/'; /// @todo unnecessary?
    760756                len++;
    761757                maxlen = sp->fts_pathlen - len;
     
    763759
    764760        cwcdir = NAPPENDW(cur);
    765         sp->fts_wcspath[cwcdir] = '/'; /// @todo unnecessary?
    766761        cwcdir++;
    767762        cwcmax = sp->fts_cwcpath - len;
     
    840835                fts_padjustw(sp, head);
    841836
    842         /*
    843          * Reset the path back to original state.
    844          */
    845         sp->fts_path[cur->fts_pathlen] = '\0';   // @todo necessary?
    846         sp->fts_wcspath[cur->fts_cwcpath] = '\0';   // @todo necessary?
    847 
    848837        /* If didn't find anything, return NULL. */
    849838        if (!nitems) {
Note: See TracChangeset for help on using the changeset viewer.