URI: 
       tcorrect ref counting in walkfile (Nemo) - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 729e53b9e55756f1b0475195489cf7309a2b80ac
   DIR parent 3fbe92ef1a2de9e8f470f66990a8637c0e29245b
  HTML Author: rsc <devnull@localhost>
       Date:   Thu, 12 Oct 2006 01:01:02 +0000
       
       correct ref counting in walkfile (Nemo)
       
       Diffstat:
         M src/lib9p/file.c                    |       6 +-----
       
       1 file changed, 1 insertion(+), 5 deletions(-)
       ---
   DIR diff --git a/src/lib9p/file.c b/src/lib9p/file.c
       t@@ -232,21 +232,17 @@ File*
        walkfile(File *f, char *path)
        {
                char *os, *s, *nexts;
       -        File *nf;
        
                if(strchr(path, '/') == nil)
                        return walkfile1(f, path);        /* avoid malloc */
        
                os = s = estrdup9p(path);
       -        incref(&f->ref);
                for(; *s; s=nexts){
                        if(nexts = strchr(s, '/'))
                                *nexts++ = '\0';
                        else
                                nexts = s+strlen(s);
       -                nf = walkfile1(f, s);
       -                decref(&f->ref);
       -                f = nf;
       +                f = walkfile1(f, s);
                        if(f == nil)
                                break;
                }