Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/etox
Dir : e17/libs/etox/src
Modified Files:
etox.c
Log Message:
Check for NULL before dereferencing the pointers.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/etox/src/etox.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -3 -r1.79 -r1.80
--- etox.c 18 May 2004 20:36:49 -0000 1.79
+++ etox.c 21 May 2004 12:45:36 -0000 1.80
@@ -937,16 +937,20 @@
/*
* Estimate the average width and height of the line.
*/
- *w = line->w / line->length;
- *h = line->h;
+ if (w)
+ *w = line->w / line->length;
+ if (h)
+ *h = line->h;
/*
* Now position it based on the total width of the line, and
* the starting position of the bits.
*/
evas_object_geometry_get(bit, &tx, &ty, &tw, &th);
- *x = tx + line->w;
- *y = line->y;
+ if (x)
+ *x = tx + line->w;
+ if (y)
+ *y = line->y;
} else {
/*
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs