Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src


Modified Files:
        entropy_core.c 


Log Message:
* Ah, regression testing - where would we be without it?  Seems I broke the 
ability to browse '/' a while back - fixed now

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/entropy_core.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -3 -r1.83 -r1.84
--- entropy_core.c      19 Apr 2006 06:38:21 -0000      1.83
+++ entropy_core.c      20 Apr 2006 06:39:51 -0000      1.84
@@ -1329,7 +1329,10 @@
        /*First get the md5sum of the file that will be this file's parent 
folder...*/
        tmp = strdup(file->path);
        pos = strrchr(tmp, '/');
-       *pos = '\0';
+       if (pos) 
+               *pos = '\0';
+       else
+               return NULL; /*No parent - this is the root, i.e. '/' */
                
        md5 = md5_entropy_path_file(file->uri_base, tmp, pos+1);
        listen = entropy_core_file_cache_retrieve(md5);




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to