Enlightenment CVS committal Author : ningerso Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_embed.c Log Message: Guard against assigning to NULL pointers when querying DND position. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v retrieving revision 1.107 retrieving revision 1.108 diff -u -3 -r1.107 -r1.108 --- ewl_embed.c 8 Jan 2007 13:32:41 -0000 1.107 +++ ewl_embed.c 6 Feb 2007 12:05:23 -0000 1.108 @@ -912,10 +912,10 @@ } } - *px = CURRENT_X(widget); - *py = CURRENT_Y(widget); - *pw = CURRENT_W(widget); - *ph = CURRENT_H(widget); + if (px) *px = CURRENT_X(widget); + if (py) *py = CURRENT_Y(widget); + if (pw) *pw = CURRENT_W(widget); + if (ph) *ph = CURRENT_H(widget); } else { DWARNING("Could not find widget for dnd position event."); } ------------------------------------------------------------------------- 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