Enlightenment CVS committal Author : jethomas Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_paned.c Log Message: Fix potential segfault - in paned test removing two buttons caused crash =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v retrieving revision 1.63 retrieving revision 1.64 diff -u -3 -r1.63 -r1.64 --- ewl_paned.c 26 Dec 2007 16:31:58 -0000 1.63 +++ ewl_paned.c 2 Jan 2008 06:25:49 -0000 1.64 @@ -746,7 +746,9 @@ if (p->last_pane) { /* find the index to start with */ - while (panes[i].pane != p->last_pane) + while ((panes[i].pane) && + (panes[i].pane + != p->last_pane)) i++; /* on the next run we don't want to start * with this widget */ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs