Enlightenment CVS committal Author : jethomas Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_filelist.c Log Message: Fix potential segfault when using the tree view of filelist =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist.c,v retrieving revision 1.52 retrieving revision 1.53 diff -u -3 -r1.52 -r1.53 --- ewl_filelist.c 12 Apr 2008 18:59:26 -0000 1.52 +++ ewl_filelist.c 13 Apr 2008 04:54:19 -0000 1.53 @@ -541,6 +541,15 @@ } FREE(idx); + if (!file) + { + /* Get this error now using tree view of filelist, when + * selecting a file too far down in an expansion + */ + DWARNING("MVC has selected file, but cannot find the data!"); + DRETURN_PTR(NULL, DLEVEL_STABLE); + } + if (!strcmp(file->name, "..")) snprintf(path, PATH_MAX, "%s", data->name); ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs